The compgen is interesting program in Bash, that provides auto-complete for various things in the system. For example:
-a means Names of alias
-b means Names of shell builtins
-c means Names of all commands
-d means Names of directory
-e means Names of exported shell variables
-f means Names of file and functions
-g means Names of groups
-j means Names of job
-k means Names of Shell reserved words
-s means Names of service
-u means Names of userAlias names
-v means 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.
The
compgenis 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 variablesMaybe 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.