Fix bashrc powerline

This commit is contained in:
Shaun Reed 2019-09-21 01:52:38 -04:00
parent 12fae1153d
commit 8fdc1ff304
1 changed files with 6 additions and 6 deletions

View File

@ -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.