diff options
author | 2012-12-01 14:12:11 -0800 | |
---|---|---|
committer | 2012-12-01 14:12:11 -0800 | |
commit | 17e786070034a07478b0f9b5f95d27251f0ab17f (patch) | |
tree | 267efa1228fd722ac03a63f5c2c5854a809edcb7 /share | |
parent | 34fab879cbd8833e1d67a27d79df07e082e57187 (diff) |
Fix chsh completion
Diffstat (limited to 'share')
-rw-r--r-- | share/completions/chsh.fish | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/completions/chsh.fish b/share/completions/chsh.fish index 7608f017..3cc23857 100644 --- a/share/completions/chsh.fish +++ b/share/completions/chsh.fish @@ -2,8 +2,8 @@ # Completions for the chsh command # -complete -c chsh -s s -l shell -x -a "(chsh -l)" -d "Specify your login shell" -complete -c chsh -s l -l list-shells -d "Display the list of shells listed in /etc/shells and exit" +# This grep tries to match nonempty lines that do not start with hash +complete -c chsh -s s -l shell -x -a "(sgrep '^[^#]' /etc/shells)" -d "Specify your login shell" complete -c chsh -s u -l help -d "Display help and exit" complete -c chsh -s v -l version -d "Display version and exit" complete -x -c chsh -a "(__fish_complete_users)" |