24 ms·
That was too much typing anyway. When you mostly work with one language something like this is nice (in my case c/c++): alias ack-cpp='ack-grep --type=cpp --typ
by coffeeaddicted 12y ago
That was too much typing anyway. When you mostly work with one language something like this is nice (in my case c/c++):
alias ack-cpp='ack-grep --type=cpp --type=cc'
- llimllib 12y agoI have that aliased to 'cack'. Then ruby is 'rack', python is 'pack', go is 'gack', etc. (I've never needed to use the rackup "rack" command directly, fortunately, if you do you ought to use a different alias)
- irahul 12y ago> I've never needed to use the rackup "rack" command directly, fortunately, if you do you ought to use a different alias Or escape alias \rack
- alxndr 12y agoor $(which rack)
- alxndr 12y agoHm, I've recently begun using zsh primarily and this trick doesn't work there: zsh lets you know what the alias is... bash will happily find `rack` in your `$PATH` and then run it. (Presumably because in zsh, `which which` says it's a shell built-in, whereas in bash it finds `/usr/bin/which`, so bash doesn't seem to be caring about your aliases.)