Keyboard shortcut for ls command?
Is there a keyboard shortcut for the ls command besides the alias l? I mean something like: Ctrl l for clear command.
One advantage, IMO, is that will not get in history list.
1 Answer
You can use bind to create a new keybinding, for example:
bind '"\C-g":"ls\n"'Now press Control-g to invoke ls. However, lswill still be saved in history. You can add it toHISTIGNOREthough.