3 ms·
I use zsh because of global aliases feature - allowing me to assign '| grep' to G, for example. AFAIK bash doesn't offer this functionality as yet.
by alkyon 6y ago
I use zsh because of global aliases feature - allowing me to assign '| grep' to G, for example. AFAIK bash doesn't offer this functionality as yet.
- jhvkjhk 6y agoYou can use keybindings to achieve similar function, put `G: '| grep'` to your ~/.inputrc and every time you type G, you get '| grep'. This may break something because it mapped a regular letter, so maybe `Control-g: '| grep'` is better.