|
|
|
|
|
by erikabele
5505 days ago
|
|
I'm totally fine with auto-completion, no need for aliases here though it might make sense if you are using the same longish command over and over again... 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`/’ |
|