by erikabele · 15y ago · 0 comments
E.g. the following does the trick for tcsh, search the web for '<myfavshell> git completion' and you'll find your way:
set gitcmds= ( `ls /usr/local/bin/git-*|sed ’s/\/usr\/local\/bin\/git-//g’` ) complete git “p/1/($gitcmds)/” ‘n/branch/`git branch|cut -c 3-`/’ ‘n/co/`git branch|cut -c 3-`/’ ‘n/remote/(show add rm prune update)/’ ‘N/remote/`git remote`/’
No comments yet.