Skip to content

Instantly share code, notes, and snippets.

@nicerobot
Last active November 17, 2020 22:26
Show Gist options
  • Save nicerobot/1b1b971902ac85bd4e7df6ce9557d338 to your computer and use it in GitHub Desktop.
Save nicerobot/1b1b971902ac85bd4e7df6ce9557d338 to your computer and use it in GitHub Desktop.
For systems that aren't respecting special characters during blackward-kill-word
# Respect extended word-boundaries
set bind-tty-special-chars off
Control-u: kill-whole-line
Control-w: backward-kill-word
# Enable Alt- <- -> for jumping by words
"\e[1;5D": backward-word
"\eOd": backward-word
"\e[1;5C": forward-word
"\eOc": forward-word
# Then, from the shell:
# bind -f ~/.inputrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment