Skip to content

Instantly share code, notes, and snippets.

@Brethel
Created July 23, 2020 13:54
Show Gist options
  • Save Brethel/bb8c1764b99dc4dd2bc53db9458132ba to your computer and use it in GitHub Desktop.
Save Brethel/bb8c1764b99dc4dd2bc53db9458132ba to your computer and use it in GitHub Desktop.
set print-completions-horizontally on
set completion-ignore-case On
set expand-tilde on
set convert-meta off
set show-all-if-ambiguous on
set visible-stats on
set completion-map-case on
set completion-query-items -1
set page-completions off
set completion-query-items 1000
#TAB: menu-complete
# Make sure we don't output everything on the 1 line
set horizontal-scroll-mode Off
# # Enable 8bit input
set meta-flag On
set input-meta On
# # Turns off 8th bit stripping
set convert-meta Off
# # Keep the 8th bit for display
set output-meta On
# # none, visible or audible
set bell-style none
# Avoid "Unable to bind key for unsupported operation: shell-forward-word"
# # in some applications (like sbt).
$if Bash
# shift-arrow
"\e[1;2C": shell-forward-word
"\e[1;2D": shell-backward-word
$endif
# for linux console and RH/Debian xterm
# # number pad buttons: home, end, pgup/down...
"\e[1~": beginning-of-line
"\e[7~": beginning-of-line
"\e[4~": end-of-line
"\e[8~": end-of-line
"\e[5~": history-search-backward
"\e[6~": history-search-forward
#"\e[5~": beginning-of-history
#"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
# From http://www.ukuug.org/events/linux2003/papers/bash_tips/
# Incremental searching with Up and Down. Type 'ssh <up>' to get the last 'ssh' command you used
"\e[A": history-search-backward
"\e[B": history-search-forward
#set -o vi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment