Commit 260729f9 authored by Justin Hileman's avatar Justin Hileman

[split] Move uggedal theme to oh-my-fish/theme-uggedal

https://github.com/oh-my-fish/theme-uggedal
parent c840c5b2
## uggedal
Minimal theme.
![uggedal theme](https://f.cloud.github.com/assets/71/485623/c84ea45a-b8f7-11e2-8f7c-35a836aa7dbe.png)
#### Characteristics
* Only displays the `$CWD`.
* Displays hostname if you're connected through `ssh(1)`.
* Right prompt displays the last command's exit code if it was non-zero.
# name: Uggedal
function fish_prompt
if test -n "$SSH_CONNECTION"
printf '%s ' $HOSTNAME
end
printf '%s ' (prompt_pwd)
end
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment