new repository without sensitive information
This commit is contained in:
commit
57fa0afede
51 changed files with 1883 additions and 0 deletions
25
compdef/_vcs
Normal file
25
compdef/_vcs
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue