mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
fish_svn_prompt: Shorten a return
This commit is contained in:
parent
2dcaf4f5c0
commit
56e122866c
@ -97,10 +97,7 @@ function fish_svn_prompt --description "Prompt function for svn"
|
|||||||
|
|
||||||
# make sure that this is a svn repo
|
# make sure that this is a svn repo
|
||||||
set -l checkout_info (command svn info 2>/dev/null)
|
set -l checkout_info (command svn info 2>/dev/null)
|
||||||
if [ $status -ne 0 ]
|
or return
|
||||||
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
# get the current revision number
|
# get the current revision number
|
||||||
printf '(%s%s%s' (set_color $__fish_svn_prompt_color_revision) (__fish_print_svn_rev) (set_color normal)
|
printf '(%s%s%s' (set_color $__fish_svn_prompt_color_revision) (__fish_print_svn_rev) (set_color normal)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user