Zsh, directory tab-completion with prefix
- by nifty
I have a directory where I put all my projects in, let's say it's ~/projects as an example. I've made a command called s which takes one argument, and moves me into that directory. E.g.: s foo moves me to ~/projects/foo.
What I'd like is to have a completion command of some sorts, which would act like cd so I could do keep hitting tab to go…