diff --git a/bash/.bashrc b/bash/.bashrc index e11426b..ce16e0b 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -65,11 +65,11 @@ if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND" fi -" if [ "$color_prompt" = yes ]; then -" PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\][\u@\h\[\033[00m\] \W\[\033[01;32m\]]\$\[\033[00m\]' -" else -" PS1='${debian_chroot:+($debian_chroot)}[\u@\h \W]\$ ' -" fi +if [ "$color_prompt" = yes ]; then + PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\][\u@\h\[\033[00m\] \W\[\033[01;32m\]]\$\[\033[00m\]' +else + PS1='${debian_chroot:+($debian_chroot)}[\u@\h \W]\$ ' +fi unset color_prompt force_color_prompt # If this is an xterm set the title to user@host:dir @@ -105,7 +105,7 @@ alias l='ls -CF' # Add an "alert" alias for long running commands. Use like so: # sleep 10; alert -alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' +#alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' # Edit ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package.