it seems the default chsh completion script assumes you are using the
chsh provided by coreutils and it uses gnu specific extensions
so you end up with this when you try to use completions
u...@domain> chsh -s /chsh: invalid option -- l
so here is how to fix
open up the global chsh.fish file and change the following line:
complete -c chsh -s s -l shell -x -a "(chsh -l)" -d "Specify your login
shell"
should be changed to:
complete -c chsh -s s -l shell -x -a "(egrep '^/' /etc/shells)" -d
"Specify your login shell"
and that should take care of it for ya
kudos to MrGrim for the fix (he actually did all the work)
5c5
< complete -c chsh -s s -l shell -x -a "(chsh -l)" -d "Specify your login shell"
---
> complete -c chsh -s s -l shell -x -a "(egrep '^/' /etc/shells)" -d "Specify your login shell"
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users