-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
Description
The compgen is interesting program in Bash, that provides auto-complete for various things in the system. For example:
-ameans Names of alias-bmeans Names of shell builtins-cmeans Names of all commands-dmeans Names of directory-emeans Names of exported shell variables-fmeans Names of file and functions-gmeans Names of groups-jmeans Names of job-kmeans Names of Shell reserved words-smeans Names of service-umeans Names of userAlias names-vmeans Names of shell variables
Maybe there is something similar in ZSH: http://www.csse.uwa.edu.au/programming/linux/zsh-doc/zsh_23.html
What I think we should do is to abstract shell interaction on PHP level and not via IFs in generated hook. Right now if we want to auto-complete usernames in system we need to update the hook and that's not very convenient.