From: Ian Kelling Date: Sat, 24 May 2014 09:48:16 +0000 (-0700) Subject: prompt bug fix X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=commitdiff_plain;h=40706f5a92a181eb63f780c9a99c96aab621cda1 prompt bug fix --- diff --git a/.bashrc b/.bashrc index c88a065..3484db4 100644 --- a/.bashrc +++ b/.bashrc @@ -179,7 +179,7 @@ mkdir() { alias d='builtin bg' complete -A stopped -P '"%' -S '"' d -alias his='history' +alias hi='history' # note: gksudo is recommended for X apps because it does not set the @@ -896,7 +896,7 @@ if [[ $- == *i* ]]; then ps_color="$(get_term_color bold green)" fi fi - PS1="${PS1/%!(*[wW]*)}$(__git_ps1 ' (%s)') \[$ps_color\]$ps_char\[$(get_term_color nocolor)\] " + PS1="${PS1%"${PS1#*[wW]}"}$(__git_ps1 ' (%s)') \[$ps_color\]$ps_char\[$(get_term_color nocolor)\] " } PROMPT_COMMAND=prompt_command fi