mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
parent
b1b2698a84
commit
de0349399c
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,7 @@ function fish_prompt
|
|||
end
|
||||
|
||||
function _is_git_repo
|
||||
type -q git; or return 1
|
||||
git status -s >/dev/null ^/dev/null
|
||||
end
|
||||
|
||||
|
@ -26,6 +27,7 @@ function fish_prompt
|
|||
end
|
||||
|
||||
function _is_hg_repo
|
||||
type -q hg; or return 1
|
||||
hg summary >/dev/null ^/dev/null
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue