diff options
Diffstat (limited to 'share/completions/chsh.fish')
-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 232513ec..31afe400 100644 --- a/share/completions/chsh.fish +++ b/share/completions/chsh.fish @@ -3,8 +3,8 @@ # # This grep tries to match nonempty lines that do not start with hash -complete -c chsh -s s -l shell -x -a "( __fish_sgrep '^[^#]' /etc/shells)" -d "Specify your login shell" -complete -c chsh -s u -l help -d "Display help and exit" +complete -c chsh -s s -l shell -x -a "(string match -r '^[^#].*' < /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)" |