Remove SSH tag & weird formatting
This commit is contained in:
parent
6f572921a5
commit
c14fd0c690
1 changed files with 2 additions and 29 deletions
31
.bashrc
31
.bashrc
|
|
@ -2,26 +2,6 @@
|
|||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
||||
# for examples
|
||||
|
||||
# Color mapping
|
||||
grey='\[\033[1;30m\]'
|
||||
red='\[\033[0;31m\]'
|
||||
RED='\[\033[1;31m\]'
|
||||
green='\[\033[0;32m\]'
|
||||
GREEN='\[\033[1;32m\]'
|
||||
yellow='\[\033[0;33m\]'
|
||||
YELLOW='\[\033[1;33m\]'
|
||||
orange='\[\033[0;214m\]'
|
||||
ORANGE="\033[38;5;214m"
|
||||
purple='\[\033[0;35m\]'
|
||||
PURPLE='\[\033[1;35m\]'
|
||||
white='\[\033[0;37m\]'
|
||||
WHITE='\[\033[1;37m\]'
|
||||
blue='\[\033[0;34m\]'
|
||||
BLUE='\[\033[1;34m\]'
|
||||
cyan='\[\033[0;36m\]'
|
||||
CYAN='\[\033[1;36m\]'
|
||||
NC='\[\033[0m\]'
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
case $- in
|
||||
*i*) ;;
|
||||
|
|
@ -68,10 +48,7 @@ if [ -n "$force_color_prompt" ]; then
|
|||
fi
|
||||
|
||||
if [ "$color_prompt" = yes ]; then
|
||||
PS1="\e[1m$ORANGE\e2\u$BLUE@$GREEN\h$white:$BLUE\w$white\$ "
|
||||
if [ -n "$SSH_CONNECTION" ];then
|
||||
PS1="$PS1$RED[SSH]$white "
|
||||
fi
|
||||
PS1="\[\033[1;33m\]\u\[\033[1;34m\]@\[\033[1;32m\]\h \[\033[1;34m\]\w\\[\033[0;37m\]$ "
|
||||
else
|
||||
PS1='\u@\h:\w\$ '
|
||||
fi
|
||||
|
|
@ -79,11 +56,7 @@ fi
|
|||
# Show different prompt when root
|
||||
if [ $(id -u) -eq 0 ];
|
||||
then
|
||||
if [ -n "$SSH_CONNECTION" ];then
|
||||
PS1="[$RED\u@\h$white]----[$RED\$(pwd)$white]----$white[$RED SSH $white]\n# "
|
||||
else
|
||||
PS1="[$RED\u@\h$white]----[$RED\$(pwd)$white]\n# "
|
||||
fi
|
||||
PS1="\[\033[1;31m\]\u\[\033[1;34m\]@\[\033[1;32m\]\h \[\033[1;34m\]\w\\[\033[0;37m\]# "
|
||||
fi
|
||||
|
||||
unset color_prompt force_color_prompt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue