# -*- shell-script -*- # # Joerg Arndt's .inputrc # your feedback is welcome mailto:arndt (AT) jjj.de # version: 2003-December-24 (15:15) # # \C-x \C-r rereads ~/.inputrc # cf. man 3 readline # bell-style (audible) Controls what happens when # readline wants to ring the terminal bell. If set to # none, readline never rings the bell. If set to # visible, readline uses a visible bell if one is # available. If set to audible, readline attempts to # ring the terminal's bell. set bell-style visible # If set to On, readline uses an internal more-like # pager to display a screen­ ful of possible # completions at a time. set page-completions off # If set to On, readline will enable eight-bit input # (that is, it will not strip the high bit from the # characters it reads), regardless of what the terminal # claims it can support. The name meta-flag is a # synonym for this variable. set input-meta on # If set to On, readline will display characters with # the eighth bit set directly rather than as a meta- # prefixed escape sequence. set output-meta on # If set to On, readline will convert characters with # the eighth bit set to an ASCII key sequence by # stripping the eighth bit and prefixing an escape # character (in effect, using escape as the meta prefix). set convert-meta on # This alters the default behavior of the completion # functions. If set to on, words which have more # than one possible completion cause the matches to # be listed immediately instead of ringing the bell. set show-all-if-ambiguous on # If set to On, a character denoting a file's type as # reported by stat(2) is appended to the filename # when listing possible completions. set visible-stats on # If set to On, readline will display completions # with matches sorted horizontally in alphabetical # order, rather than down the screen. set print-completions-horizontally on set mark-modified-lines off $if Bash ## Quote the whole line in '$( )': "\C-xq": "\C-e)\C-a $(\C-a" ## show type of command and quote the whole line in '$(type -ap )' "\C-xp": "\C-atype -a \n\e[A\C-a\ed\ed $(type -ap\C-e)\C-a" ## list 3 newest files and init cmdline with newest file "\C-xl": "\C-a\\ls -tr1 | tail -3 \n\e[A\C-a\ed\ed $(\\ls -tr1 | tail -1\C-e)\C-a" $endif "\e[3~": delete-char #"\e[2~": insert-whatever "\e[1~": beginning-of-line "\e[H": beginning-of-line "\e[4~": end-of-line "\e[F": end-of-line "\e[5~": previous-history "\e[6~": next-history "\e[C": forward-char # arrow key #"\eOC": forward-char "\e[D": backward-char # arrow key #"\eOD": backward-char "\e\e[C": forward-word "\ef": forward-word # alt-f #"\e\eOC": forward-word "\e\e[D": backward-word "\eb": backward-word # alt-b #"\C-\e[5D": backward-word #"\e\eOD": backward-word "\C-\e[5C": forward-word "\C-\e[5D": backward-word "\e[A": previous-history "\eOA": previous-history "\e[B": next-history "\eOB": next-history "\ed": kill-word "\e\C-h": backward-kill-word "\C-xf": dump-functions "\C-xv": dump-variables "\C-xm": dump-macros #complete can be found on "\C-i". #complete-command can be found on "\e!". #complete-filename can be found on "\e/". #complete-hostname can be found on "\e@". #complete-into-braces can be found on "\e{". #complete-username can be found on "\e~". #complete-variable can be found on "\e$". # Emacs: # Local Variables: # mode: shell-script # fill-column: 55 # End: