Merge pull request #28 from uggedal/uggedal-theme

Minimal prompt theme.
This commit is contained in:
Bruno 2013-05-09 16:54:39 -07:00
commit b45d2ebb84
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,7 @@
function fish_prompt
if test -n "$SSH_CONNECTION"
printf '%s ' $HOSTNAME
end
printf '%s ' (prompt_pwd)
end

View File

@ -0,0 +1,9 @@
function fish_right_prompt
set -l last_status $status
if test $last_status -ne 0
set_color red
printf '%d' $last_status
set_color normal
end
end