mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-25 09:41:40 +08:00
robbyrussell zsh theme ported to fish
This commit is contained in:
parent
768a420582
commit
7694d653cf
12
themes/robbyrussell/fish_prompt.fish
Normal file
12
themes/robbyrussell/fish_prompt.fish
Normal file
|
@ -0,0 +1,12 @@
|
|||
function fish_prompt
|
||||
if [ (git_branch_name) ]
|
||||
if [ (is_git_dirty) ]
|
||||
set git_dirty "✗"
|
||||
end
|
||||
|
||||
printf '%s➜ %s %s git:(%s%s%s) %s ' (set_color red) (set_color blue) (basename (prompt_pwd)) (set_color red) (git_branch_name) (set_color blue) $git_dirty
|
||||
else
|
||||
printf '%s➜ %s %s ' (set_color red) (set_color blue) (basename (prompt_pwd))
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user