How to remove PC name from the terminal
By Jessica Wood •
How to remove the PC name from the terminal example
rahul@rahul-ThinkPad-L480:~$
to
rahul:~$ 0 1 Answer
vi .bashrc:
Original:
if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fichange it to ...
if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else PS1='${debian_chroot:+($debian_chroot)}\u:\w\$ '
fi(basically remove the "@\h" twice.
Make a backup of .bashrc with
cp .bashrc .bashrc.oldbefore editing.
More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"