<root> / inputrc (192f18b7e297247ab4c1e53e7a2f46eb86a099cd) (2,519B) (mode 100644) [raw]
# do completion on one <tab> press, not two
set show-all-if-ambiguous On

# display input mode indicator in front of command line
set show-mode-in-prompt On

# disable any kind of bell (annoying on failed completion)
set bell-style none

# disable default binding for special characters, thus enabling custom bindings
# to them (e.g. Ctrl-W)
set bind-tty-special-chars Off

# disable saving edits of history
set revert-all-at-newline On

# colorize common prefix among completion matches
set colored-completion-prefix On

# colorize files on completion according to colors of $LS_COLORS
set colored-stats On

# recall only commands that start with given beginning on Up Arrow key
"\e[A": history-search-backward
"\eOA": history-search-backward

# recall only commands that start with given beginning on Down Arrow key
"\e[B": history-search-forward
"\eOB": history-search-forward

# remove words not WORDS on Ctrl-W
"\C-w": backward-kill-word

tab: menu-complete
"\e[Z": menu-complete-backward

# Mixed vi-emacs configuration: uses emacs shortcuts in vi insert and normal
# modes.

set keymap vi-insert
tab: menu-complete
"\e[Z": menu-complete-backward
"\C-l": clear-screen
"\C-a": beginning-of-line
"\eOH": beginning-of-line
"\e[H": beginning-of-line
"\C-e": end-of-line
"\eOF": end-of-line
"\e[F": end-of-line
"\C-f": forward-char
"\eOC": forward-char
"\e[C": forward-char
"\C-b": backward-char
"\eOD": backward-char
"\e[D": backward-char
"\ef": forward-word
"\eb": backward-word
"\C-n": next-history
"\C-p": previous-history
"\C-x\C-r": re-read-init-file
"\e.": insert-last-argument
"\e_": insert-last-argument
"\ed": kill-word
"\C-k": kill-line
"\C-w": backward-kill-word
"\C-x\C-e": edit-and-execute-command
# recall only commands that start with given beginning on Up Arrow key
"\e[A": history-search-backward
"\eOA": history-search-backward
# recall only commands that start with given beginning on Down Arrow key
"\e[B": history-search-forward
"\eOB": history-search-forward

set keymap vi-command
"\C-l": clear-screen
"\C-a": beginning-of-line
"\eOH": beginning-of-line
"\e[H": beginning-of-line
"\C-e": end-of-line
"\eOF": end-of-line
"\e[F": end-of-line
"\C-f": forward-char
"\eOC": forward-char
"\e[C": forward-char
"\C-b": backward-char
"\eOD": backward-char
"\e[D": backward-char
"\ef": forward-word
"\eb": backward-word
"\C-n": next-history
"\C-p": previous-history
"\C-x\C-r": re-read-init-file

# gdb looses ability to enable TUI in vi mode, so use in bash only
$if Bash
    set editing-mode vi
$endif
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/dotfiles

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/dotfiles

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master