Skip to main content
Topic: how to change display name and name of host pc in terminal (Read 288 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

how to change display name and name of host pc in terminal

i mean, dont change the user name and name of host pc, i mean how to make it display not like "artix:[username]" in terminal, but for example "username@artix". I hope I've explained clearly

Re: how to change display name and name of host pc in terminal

Reply #1
set PS1 variable in your shell rc
for example for bash you would add this line to ~/.bashrc
Code: [Select]
PS1='[\u@\h \W]\$'
here is a cool website made for making bash prompts https://bash-prompt-generator.org/