3 ms·
My favourite feature of zsh (it might be oh-my-zsh), is the tab expansion of unambiguous abbreviated paths. Say if you do: $ cd /u/b/l<TAB> That will expa
by Xophmeister 6y ago
My favourite feature of zsh (it might be oh-my-zsh), is the tab expansion of unambiguous abbreviated paths. Say if you do:
$ cd /u/b/l<TAB>
That will expand into /usr/bin/local. If there are ambiguities at any point, it will expand as much as it can and let you fix it at the point where a decision needs to be made (pressing tab again will show you the options, like Bash et al). For example:
$ /u/b/gr<TAB><TAB>
$ /usr/bin/gr
grep groff groups
- dhagz 6y agoAs far as I know, that's not oh-my-zsh, since I can do that and I don't have omz installed.
- JNRowe 6y agoYou're right, all it requires is a call to compinit from base zsh: `autoload -Uz compinit; compinit` And compinstall can be used to configure things like the case-sensitivity or amount of ambiguity accepted in matches using a nice menu system.