exist status smiley

This commit is contained in:
hjp 2008-08-06 13:47:30 +00:00
parent 4e2270166e
commit 9b97ba4e1b
1 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,10 @@ fi
if [[ .$TERM. = .xterm. ]] if [[ .$TERM. = .xterm. ]]
then then
prompt="%{]0;%m(%l)%n %~%}%B%m:%~ %T %h%# %b" # indicated exit status by smiley (suggested by Stig Sandbeck Mathisen)
smiley="%b%(0?,%{%}:-),%{%}:-()%{%}%B"
prompt="%{]0;%m(%l)%n %~%}%B%m:%~ %T $smiley %h%# %b"
unsetopt PRINT_EXIT_VALUE
# force backspace key to send BS: # force backspace key to send BS:
# warning: This works with real xterm and rxvt # warning: This works with real xterm and rxvt
# it doesn't work with konsole or gnome-terminal. # it doesn't work with konsole or gnome-terminal.