-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
Description
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.