Hacker News new | past | comments | ask | show | jobs | submit login

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



As far as I know, that's not oh-my-zsh, since I can do that and I don't have omz installed.


You'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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: