Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # /etc/inputrc - global inputrc for libreadline -- by [email protected]
- $include /etc/inputrc
- ### Be 8 bit clean.
- set input-meta on
- set output-meta on
- set meta-flag on
- set convert-meta off
- # *?* this is the default on debian
- set byte-oriented off
- ### Keyboard
- # bind the control characters of the kernel's terminal driver
- set bind-tty-special-chars on
- # echoes a character corresponding to a signal generated from the keyboard
- set echo-control-characters on
- # some systems need this to enable the keypad
- set enable-keypad off
- # enable any meta modifier key the terminal claims to support, used to send eight-bit characters
- set enable-meta-key on
- ### Editing mode
- # emacs or vi, choose your poison...
- set editing-mode emacs
- # emacs, emacs-standard, emacs-meta, emacs-ctlx, vi, vi-move, vi-command, and vi-insert
- set keymap emacs
- # *?* highlight parenthesis, brakets
- set blink-matching-paren on
- # horizontal scroll for command editing, this one cause problems with the correct display of $PS1
- set horizontal-scroll-mode off
- ### Bell
- # none, visible, audible
- set bell-style visible
- # *?* i guess it's about flashing the screen like bell-style
- set prefer-visible-bell on
- ### Completion
- # we want completion enabled
- set disable-completion off
- # filename matching and completion in a case-insensitive fashion
- set completion-ignore-case on
- # if ignore case is set, map - to _
- set completion-map-case on
- # tilde expansion when attempting word completion
- set expand-tilde on
- # set which characters should teminate an incremental search (ESC and C-J)
- #set isearch-terminators
- # the leading '.' must be supplied by the user in the filename to be completed
- set match-hidden-files off
- # if completing in the middle of a word, dont duplicate text
- set skip-completed-text on
- ### Completion list
- # ask to display more than 128 items
- set completion-query-items 128
- # do not uses an internal pager to display screens of possible completions
- set page-completions off
- # width is the terminal width
- set completion-display-width -1
- # add an ellipsis for completion longer than 16 characters
- set completion-prefix-display-length 16
- # completions sorted vertically
- set print-completions-horizontally off
- # words with more than one completion are be listed immediately
- set show-all-if-ambiguous on
- # *?*
- set show-all-if-unmodified on
- # add @, /, *, = to filetype in completion list
- set visible-stats on
- # completed directory names have a slash appended
- set mark-directories on
- # symbolic links to directories have a slash appended
- set mark-symlinked-directories on
- ### History
- # attempts to place the point at the same location on each history line retrieved
- set history-preserve-point off
- # maximum number of history entries saved (0 for unlimited)
- set history-size 1024
- # display an asterisk (`*') at the start of history lines which have been modified
- set mark-modified-lines off
- # undo all changes to history before returning when accept-line is executed
- set revert-all-at-newline off
- ################################################################################
- $if bash
- # string to insert at the start of the line with insert-comment
- set comment-begin #
- # Completion
- Tab: menu-complete
- "\e[Z": menu-complete-backward
- #Control-Tab: dynamic-complete-history
- "\M-!": complete-command
- "\M-/": complete-filename
- "\M-@": complete-hostname
- "\M-{": complete-into-braces
- "\M-~": complete-username
- "\M-$": complete-variable
- # History (Up/Down arrowns)
- "\e[A": history-search-backward
- "\e[B": history-search-forward
- # Word move (Control-Left/Right arrows)
- "\e[1;5D": backward-word
- "\e[1;5C": forward-word
- # edit path
- "\C-xp": "PATH=${PATH}\e\C-e\C-a\ef\C-f"
- "\C-w": unix-filename-rubout
- Meta-Rubout: unix-filename-rubout
- # Meta+O can be made to load the previous command and position the cursor for typing an option
- "\M-o": "\C-p\C-a\M-f "
- # Dump
- "\C-xf": dump-functions
- "\C-xv": dump-variables
- "\C-xm": dump-macros
- # Magic space
- Space: magic-space
- $endif
- ################################################################################
- $if Ftp
- "\C-xg": "get \M-?"
- "\C-xp": "put \M-?"
- "\M-.": yank-last-arg
- $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement