aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/tools
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2016-03-20 12:17:00 +0100
committerGravatar Fabian Homborg <FHomborg@gmail.com>2016-03-20 12:17:00 +0100
commitde0349399c5fcf0aa624e6607c17fd47fd5301bf (patch)
tree9269ca255ce401cec3260641d8e3f217247e7418 /share/tools
parentb1b2698a843b52ea18ae0f8fc1e5a2b6e003f409 (diff)
robbyrussell prompt: Check for git/hg existence
Fixes #2826
Diffstat (limited to 'share/tools')
-rw-r--r--share/tools/web_config/sample_prompts/robbyrussell.fish2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/tools/web_config/sample_prompts/robbyrussell.fish b/share/tools/web_config/sample_prompts/robbyrussell.fish
index 1c7fa748..0a895ba4 100644
--- a/share/tools/web_config/sample_prompts/robbyrussell.fish
+++ b/share/tools/web_config/sample_prompts/robbyrussell.fish
@@ -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