From 40706f5a92a181eb63f780c9a99c96aab621cda1 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sat, 24 May 2014 02:48:16 -0700 Subject: [PATCH] prompt bug fix --- .bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2