mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-21 22:07:48 +08:00
Merge pull request #28 from uggedal/uggedal-theme
Minimal prompt theme.
This commit is contained in:
commit
b45d2ebb84
7
themes/uggedal/fish_prompt.fish
Normal file
7
themes/uggedal/fish_prompt.fish
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
function fish_prompt
|
||||||
|
if test -n "$SSH_CONNECTION"
|
||||||
|
printf '%s ' $HOSTNAME
|
||||||
|
end
|
||||||
|
|
||||||
|
printf '%s ' (prompt_pwd)
|
||||||
|
end
|
9
themes/uggedal/fish_right_prompt.fish
Normal file
9
themes/uggedal/fish_right_prompt.fish
Normal 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
|
Loading…
Reference in New Issue
Block a user