Last active
May 21, 2020 15:46
-
-
Save chighbcn/4ec871a95a9009c5007ef1a337831c96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.inputrc -*- coding: utf-8 -*- | |
#----------------------------------------------------------------------------- | |
# Use `bind -v` to see current settings | |
#----------------------------------------------------------------------------- | |
# input-meta / meta-flag are synonymous | |
#set input-meta on | |
set meta-flag on | |
set convert-meta off | |
set output-meta on | |
#set editing-mode {*emacs|vi} | |
# never ring the terminal bell | |
# set bell-style {none|visible|audible} | |
#set bell-style none | |
set bell-style visible | |
# changes the case of typed text to applicable on <TAB> | |
#set completion-ignore-case on | |
# completed names that are symlinks to directories have / appended | |
#set mark-symlinked-directories on | |
set mark-symlinked-directories off | |
set mark-directories on | |
#set mark-directories off | |
set blink-matching-paren on | |
set horizontal-scroll-mode on | |
#set horizontal-scroll-mode off | |
# when <TAB> don't show hidden, to show hidden type "." first | |
set match-hidden-files off | |
# first <TAB> suggests ambiguous variants, instead of <TAB><TAB> | |
set show-all-if-ambiguous off | |
# Show all autocomplete results at once | |
set page-completions off | |
# Show extra file information when completing, like `ls -F` does | |
set visible-stats on | |
# displays an (*) at the start of history lines which have been modified. | |
set mark-modified-lines on | |
# Key bindings | |
# Use <TAB> to cycle through all the possible completions. | |
#"\t": menu-complete | |
"\eg": "| grep -i " | |
"\ea": "| awk " | |
"\es": "| sort | uniq -c | sort -rh\C-m" | |
# Macro expressed on the right hand side (that is, to insert the | |
# text '> output' into the line) | |
#Control-o: "> output\C-m" | |
"\eo": "> std.out\C-m" | |
# Deletes previous word (see also Control-u and Control-k) | |
Control-b: backward-kill-word | |
# Control + Left/Right Arrow jumps to the beginning/end of line | |
"\e[5C": end-of-line | |
"\e[5D": beginning-of-line | |
# History matching | |
"\e[A": history-search-backward | |
"\e[B": history-search-forward | |
"\eOA": history-search-backward | |
"\eOB": history-search-forward | |
# "\e[5~": history-search-backward # Page up/Page down | |
# "\e[6~": history-search-forward # Page up/Page down | |
## The following was aken from: | |
## https://github.com/terryma/dotfiles | |
#"\C-w": backward-kill-word | |
#"\C-e": end-of-line | |
#"\C-r": reverse-search-history | |
#"\C-t": set-mark | |
#"\C-y": copy-region-as-kill | |
#"\C-u": unix-line-discard | |
#"\C-o": kill-line | |
#"\C-a": beginning-of-line | |
#"\C-s": forward-search-history | |
#"\C-d": kill-word | |
#"\C-f": backward-char | |
#"\C-g": forward-char | |
"\C-h": backward-word | |
#"\C-j": next-history | |
#"\C-k": previous-history | |
"\C-l": forward-word | |
#"\C-v": yank | |
#"\C-n": clear-screen | |
#"\C-_": undo | |
## In iTerm, <Ctrl-BS> sends Alt-d | |
#"^[d": backward-kill-word | |
#bindkey "^[[A" history-beginning-search-backward | |
#bindkey "^[[B" history-beginning-search-forward | |
#"\e[1;5C": forward-word | |
#"\e[1;5D": backward-word | |
#"\e[5C": forward-word | |
#"\e[5D": backward-word | |
#"\e\e[C": forward-word | |
#"\e\e[D": backward-word |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment