diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-12-11 09:53:12 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-12-11 09:53:12 +0000 |
commit | b4a2d51e57b1f50db4b9e489652daf35f1e583d0 (patch) | |
tree | ec0ce579ca82b5498ee579f415cc81d838702dd2 /Functions/VCS_Info/VCS_INFO_get_cmd | |
parent | 37a4dce4bc5b38a686516e22d0dc81a90b757d91 (diff) | |
download | zsh-b4a2d51e57b1f50db4b9e489652daf35f1e583d0.tar.gz zsh-b4a2d51e57b1f50db4b9e489652daf35f1e583d0.tar.xz zsh-b4a2d51e57b1f50db4b9e489652daf35f1e583d0.zip |
Frank Terbeck: 26125: add "command" style to VCS_INFO
Diffstat (limited to 'Functions/VCS_Info/VCS_INFO_get_cmd')
-rw-r--r-- | Functions/VCS_Info/VCS_INFO_get_cmd | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Functions/VCS_Info/VCS_INFO_get_cmd b/Functions/VCS_Info/VCS_INFO_get_cmd new file mode 100644 index 000000000..26046f1c5 --- /dev/null +++ b/Functions/VCS_Info/VCS_INFO_get_cmd @@ -0,0 +1,6 @@ +## vim:ft=zsh +# find out if the user wants us to use a special binary. +# the default command name is the same as the backend name. +local cmd +zstyle -s ":vcs_info:${vcs}:${usercontext}:${rrn}" "command" cmd +vcs_comm[cmd]=${cmd:-$vcs} |