From: Richard Hartmann Date: Mon, 17 Oct 2011 08:19:14 +0000 (+0200) Subject: Release of 0.20111017 X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/2448eecb5bee6131a84c688007eee74cc2f97ea7?hp=--cc Release of 0.20111017 * Has been tested on my and other's machines for months * Includes zsh completion * Does not support `vcsh use`, but in a releasable state otherwise --- 2448eecb5bee6131a84c688007eee74cc2f97ea7 diff --git a/_vcsh b/_vcsh index 6a21605..fce8794 100644 --- a/_vcsh +++ b/_vcsh @@ -1,10 +1,10 @@ #compdef vcsh +# use\:"use/enter repo" _arguments \ ':subcommand:(( help\:"display help" list\:"list all repos" - use\:"use/enter repo" run\:"run command on repo" init\:"init & clone from repo" clone\:"clone from repo" diff --git a/vcsh b/vcsh index 4e99718..ba601b4 100755 --- a/vcsh +++ b/vcsh @@ -27,6 +27,7 @@ verbose() { if [ "$VCSH_DEBUG" = '1' ] || [ "$VCSH_VERBOSE" = '1' ]; then echo "$SELF: verbose: $1"; fi } +# use Use this repository help() { echo "usage: $SELF @@ -34,7 +35,6 @@ help() { list List all repos - use Use this repository run Use this repository @@ -105,24 +105,24 @@ elif [ "$1" = 'run' ]; then verbose "run end" exit 0 -elif [ "$1" = 'use' ]; then - verbose "use begin" - if [ -n "$ZSH_VERSION" ]; then - if [ -o NO_IGNORE_EOF ]; then - export VCSH_NO_IGNORE_EOF=1 - setopt IGNORE_EOF - fi - vcsh_exit() { - vcsh exit; - zle reset-prompt; - } - zle -N vcsh_exit - bindkey '^d' 'vcsh_exit' - fi - use $2 - [ -n "$ZSH_VERSION" ] && [ "$USER" = richih ] && buildPS1 - verbose "use end" - exit 0 +#elif [ "$1" = 'use' ]; then +# verbose "use begin" +# if [ -n "$ZSH_VERSION" ]; then +# if [ -o NO_IGNORE_EOF ]; then +# export VCSH_NO_IGNORE_EOF=1 +# setopt IGNORE_EOF +# fi +# vcsh_exit() { +# vcsh exit; +# zle reset-prompt; +# } +# zle -N vcsh_exit +# bindkey '^d' 'vcsh_exit' +# fi +# use $2 +# [ -n "$ZSH_VERSION" ] && [ "$USER" = richih ] && buildPS1 +# verbose "use end" +# exit 0 elif [ "$1" = 'clone' ]; then verbose "clone begin"