From 0a8f66eead3db6b84247c23fba4ff74d11f93fcf Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 30 Jan 2023 12:24:30 -0600 Subject: Inputrc! --- readline/inputrc | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) (limited to 'readline/inputrc') diff --git a/readline/inputrc b/readline/inputrc index 20f3251..bc113e6 100644 --- a/readline/inputrc +++ b/readline/inputrc @@ -1,26 +1,51 @@ -# inputrc +# inputrc -*- conf -*- + +## Info: +# https://www.masteringemacs.org/article/keyboard-shortcuts-every-command-line-hacker-should-know-about-gnu-readline +# https://ss64.com/bash/syntax-inputrc.html # Include the system inputrc $include /etc/inputrc -# Search based on what I've already typed -"\C-p":history-search-backward -"\C-n":history-search-forward +# Emacs shell-like history navigation +"\ep": history-search-backward +"\en": history-search-forward + +### Global settings + +set expand-tilde on # Show completions using LS_COLORS -set colored-stats Off +set colored-stats on +set colored-completion-prefix on + # Ignore case in completions set completion-ignore-case On + # Show ... if common prefix is longer than 3 characters set completion-prefix-display-length 3 + # Show symlinked directories with a slash set mark-symlinked-directories On + # Show completions immediately set show-all-if-ambiguous On set show-all-if-unmodified On + # Show types (like ls -F) set visible-stats On + # Better pasting set enable-bracketed-paste on + # Blink parens set blink-matching-paren on + +### Bash + +$if Bash +# Wrap the command line in $( ... ) +"\C-xq": "\C-a$(\C-e)" +# C-M-o : dabbrev-expand +"\e\C-o": dabbrev-expand +$endif \ No newline at end of file -- cgit 1.4.1-21-gabe81