1
0
Taddeus Kroes 10 месяцев назад
Родитель
Сommit
e7bfe46284
1 измененных файлов с 7 добавлено и 2 удалено
  1. 7 2
      bashrc

+ 7 - 2
bashrc

@@ -51,11 +51,16 @@ else
     USERCOLOR="\[\e[01;32m\]"  # Green otherwise
     USERCOLOR="\[\e[01;32m\]"  # Green otherwise
     INDICATOR="$"
     INDICATOR="$"
 fi
 fi
+if [ $USER = taddeus ]; then
+    USERNAME=
+else
+    USERNAME="\u@"
+fi
 
 
 if [ "$color_prompt" = yes ]; then
 if [ "$color_prompt" = yes ]; then
-    PS1="${debian_chroot:+($debian_chroot)}$USERCOLOR\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$INDICATOR "
+    PS1="${debian_chroot:+($debian_chroot)}$USERCOLOR$USERNAME\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$INDICATOR "
 else
 else
-    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$INDICATOR '
+    PS1='${debian_chroot:+($debian_chroot)}'"$USERNAME"'\h:\w\$INDICATOR '
 fi
 fi
 unset color_prompt
 unset color_prompt