re: Using keyboard-shortcuts with zsh VIEW POST


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


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.


Fair enough, I misunderstood the topic I guess

code of conduct - report abuse