new repository without sensitive information

This commit is contained in:
Alexander Gehrke 2013-03-15 08:37:33 +01:00
commit 57fa0afede
51 changed files with 1883 additions and 0 deletions

25
compdef/_vcs Normal file
View file

@ -0,0 +1,25 @@
#compdef gpl gst
_gpl() {
if [[ "$VCS_DETECTED" == "hg" ]]; then
words=( hg pull "${(@)nw}"); (( CURRENT++ )); _hg
elif [[ "$VCS_DETECTED" == "hg" ]]; then
words=( svn update "${(@)nw}"); (( CURRENT++ )); _svn
else
words=( git pull "${(@)nw}"); (( CURRENT++ )); service=git; _git
fi
}
_gst() {
words=( git status "${(@)nw}"); (( CURRENT++ )); service=git; _git
}
nw=("${(@)words[2,$]}")
case "$service" in
gpl)
_gpl "$@" && return 0
;;
gst)
_gst "$@" && return 0
;;
esac