diff options
Diffstat (limited to 'bash-completion/nsenter')
-rw-r--r-- | bash-completion/nsenter | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/bash-completion/nsenter b/bash-completion/nsenter index 268f3782c..ceea61001 100644 --- a/bash-completion/nsenter +++ b/bash-completion/nsenter @@ -5,6 +5,14 @@ _nsenter_module() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" case $prev in + '-S'|'--uid') + COMPREPLY=( $(compgen -W "uid" -- $cur) ) + return 0 + ;; + '-G'|'--gid') + COMPREPLY=( $(compgen -W "gid" -- $cur) ) + return 0 + ;; '-t'|'--target') local PIDS PIDS=$(for I in /proc/[0-9]*; do echo ${I##"/proc/"}; done) @@ -24,18 +32,25 @@ _nsenter_module() cur=${cur#=} ;; -*) - OPTS="--target + OPTS=" + --all + --target --mount= --uts= --ipc= --net= --pid= + --cgroup= --user= + --setuid + --setgid + --preserve-credentials --root= --wd= --no-fork --help - --version" + --version + " COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) return 0 ;; |