Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### INPUTRC ###
- $include /etc/inputrc
- # Completion settings
- set completion-ignore-case on
- #set completion-query-items -1
- set show-all-if-ambiguous on
- set colored-completion-prefix on
- set colored-stats on
- #tab:menu-complete
- #"\e[Z":menu-complete-backward
- # Disable control echo
- set echo-control-characters off
- # Invoke the manual for the command preceding the cursor by pressing Alt+h
- #"\eh": "\C-a\eb\ed\C-y\e#man \C-y\C-m\C-p\C-p\C-a\C-d\C-e"
- # Alt+Ctrl+n starts a new terminal in working directory
- #"\e\C-n": "urxvt &\ndisown\n"
- # Alt+Ctrl+f starts thunar in working directory
- #"\e\C-f": "thunar &\ndisown\n"
- # Incremental search (Vi-like)
- #"\e[A": history-search-backward
- #"\e[B": history-search-forward
- #"\e[C": forward-char
- #"\e[D": backward-char
- # Can be set to either emacs or vi
- set editing-mode vi
- set show-mode-in-prompt on
- set vi-ins-mode-string (\1\e[34;1m\2ins\1\e[0m\2)
- set vi-cmd-mode-string (\1\e[35;1m\2cmd\1\e[0m\2)
- $if mode=vi
- set keymap vi-insert
- ### Keybinds for insert mode ###
- # Ctrl+l for clear
- "\C-l": clear-screen
- # Glob patterns without executing, eg: 'rm *x'
- "\ee": glob-expand-word
- # Edit options before rerunning previous command, eg: ls a b c -> ls -al a b c
- "\C-o": "\e-0eli "
- # Cycle thru completions.
- # maybe bind another function here to display the selected item
- "\el": menu-complete
- "\eh": menu-complete-backward
- ## Two escapes clear command line.
- #"\e\e": "\e0\C-ki"
- set keymap vi-command
- ### Keybinds for command mode ###
- "\ee": glob-expand-word
- $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement