DEV Community

Discussion on: Using keyboard-shortcuts with zsh

Collapse
 
dmitrykrasilnikov profile image
Dmitriy Krasilnikov

But why define functions & shortcuts if there is a great git plugin for zsh? It's built around aliases, the commands are pretty short and mnemonic, and you can just add any flags you want after typing in the command, i.e. ga -u which is git add -u

Collapse
 
riscie profile image
riscie

Sure, aliases and plugins work as well, if not better.
I just wanted to show how to handle keybindings in zsh here. Git was just an example. Keybindings come in handy for more terminal-based commands imo. Like clearing the screen (which is often bound to ctrl-l) and stuff alike.

Collapse
 
dmitrykrasilnikov profile image
Dmitriy Krasilnikov

Fair enough, I misunderstood the topic I guess