Permalink
Browse files

fixed prompt leaving wrong colours

  • Loading branch information...
1 parent cd70169 commit 11b1007b9541120252f3d44f79ea98a42ee2658f @matijs committed Jul 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 .bash/prompt
View
@@ -1,3 +1,3 @@
export PS1='(\!) \u@\h:\W \[$PROMPT_SMILEY\]\$ ';
# to be executed every time before a prompt is displayed
-export PROMPT_COMMAND='[ $? -eq 0 ] && PROMPT_SMILEY="" || PROMPT_SMILEY="$(tput setaf 1)! $(tput sgr0)"';
+export PROMPT_COMMAND='[ $? -eq 0 ] && PROMPT_SMILEY="$(tput sgr0)" || PROMPT_SMILEY="$(tput setaf 1)! $(tput sgr0)"';

0 comments on commit 11b1007

Please sign in to comment.