diff options
Diffstat (limited to 'readline/inputrc')
-rw-r--r-- | readline/inputrc | 102 |
1 files changed, 54 insertions, 48 deletions
diff --git a/readline/inputrc b/readline/inputrc index 87abcd49..90c53633 100644 --- a/readline/inputrc +++ b/readline/inputrc @@ -1,12 +1,8 @@ -# Don't mess with the eighth bit of characters -set input-meta on -set output-meta on - # Never ring any sort of bell during line reading set bell-style none -# Let readline do stuff like word killing, not stty(1) -set bind-tty-special-chars off +# Color files by type in the same way as `ls` +set colored-stats on # Ignore case when matching and completing paths set completion-ignore-case on @@ -17,9 +13,16 @@ set completion-map-case on # Show me up to 5,000 completion items, don't be shy set completion-query-items 5000 +# When completing, put the matched completion prefix in a different color +set colored-completion-prefix on +set menu-complete-display-prefix on + # Don't display control characters like ^C if I input them set echo-control-characters off +# Detect terminal pastes and don't treat the characters like keyboard input +set enable-bracketed-paste on + # Expand tilde to full path on completion set expand-tilde on @@ -48,56 +51,59 @@ set show-all-if-ambiguous on # Don't re-complete already completed text in the middle of a word set skip-completed-text on +# Append characters to indicate completion filetype +set visible-stats on + # Bash macros $if Bash - # Expand ! history with a spacebar press - # Note that this makes your shell unusable if your Bash doesn't have - # magic-space. It's had this feature since 2.02. - Space: magic-space - - # Tab does traditional blocking completion - Tab: complete - # Alt+A cycles through completion options - "\ea": menu-complete - - # Special completion keys for git(1) - ## Branches - "\C-xb": complete - ## Tags - "\C-xt": complete - - # Ctrl-Alt-L to clear screen; more ksh-like - "\e\C-l": clear-screen - - # Alt-E (for exec) to prepend "exec " to a command and return to the end of - # the line - "\ee": "\C-aexec \C-e" - # Alt-P (for procedure) to wrap current command in () { ... ; } and go to - # the start of the line - "\ep": "\C-a() { \C-e ; }\C-a" - # Alt-S (for set) to wrap current command in (set -x ; ...) - "\es": "\C-a(set -x ; \C-e)\C-b" - - # Alt-M (for muxer) to run tm(1df) - "\em": "\C-utm\C-j\C-y" - - # Alt-' for escaped single-quote: 'don'\''t fear the reaper' - "\e'": "'\\''" - - # Ctrl-Alt-B to move backward a shell-quoted word - "\e\C-b": shell-backward-word - # Ctrl-Alt-F to move forward a shell-quoted word - "\e\C-f": shell-forward-word - # Ctrl-Alt-W to delete a previous shell-quoted word - "\e\C-w": shell-backward-kill-word + # Expand ! history with a spacebar press + # Note that this makes your shell unusable if your Bash doesn't have + # magic-space. It's had this feature since 2.02. + Space: magic-space + + # Tab does traditional blocking completion + Tab: complete + # Alt+A cycles through completion options + "\ea": menu-complete + + # Special completion keys for git(1) + ## Branches + "\C-xb": complete + ## Tags + "\C-xt": complete + + # Ctrl-Alt-L to clear screen; more ksh-like + "\e\C-l": clear-screen + + # Alt-E (for exec) to prepend "exec " to a command and return to the end of + # the line + "\ee": "\C-aexec \C-e" + # Alt-P (for procedure) to wrap current command in () { ... ; } and go to + # the start of the line + "\ep": "\C-a() { \C-e ; }\C-a" + # Alt-S (for set) to wrap current command in (set -x ; ...) + "\es": "\C-a(set -x ; \C-e)\C-b" + + # Alt-M (for muxer) to run tm(1df) + "\em": "\C-utm\C-j\C-y" + + # Alt-' for escaped single-quote: 'don'\''t fear the reaper' + "\e'": "'\\''" + + # Ctrl-Alt-B to move backward a shell-quoted word + "\e\C-b": shell-backward-word + # Ctrl-Alt-F to move forward a shell-quoted word + "\e\C-f": shell-forward-word + # Ctrl-Alt-W to delete a previous shell-quoted word + "\e\C-w": shell-backward-kill-word $endif # bc macros $if bc - # Don't let bc complete filenames (!?) - Tab: + # Don't let bc complete filenames (!?) + Tab: $endif |