LINUX.ORG.RU

История изменений

Исправление Zmicier, (текущая версия) :

в ~/.inputrc есть смысл дописать:

Что, уже обмен дотфайлыми пошел?

# -*-conf-space-*-

$include /etc/inputrc

## Autocompletion

"\e\C-i": menu-complete
"\C-i": complete
"\C-x\C-i": possible-completions

# Consistency with Emacs.
"\e/": dabbrev-expand
"\C-x/": dynamic-complete-history

# This was bound to M-/ and C-x / by default
"\e\e": complete-filename
"\C-x\e": possible-filename-completions

# The next <complete> after completing common prefix shows all.
set show-all-if-unmodified on

set skip-completed-text on

set completion-ignore-case on

# ‘-’ == ‘_’ for completion
set completion-map-case on

set print-completions-horizontally on

# Show type of filesystem resource in completion list according to stat(2):
# / - dirs, @ - symlinks, # - block devs, % - char devs, | - FIFOs.
set visible-stats on
set colored-stats on

set colored-completion-prefix on

# Append a slash to completed symlinks that point to directories as well as to
# actual directiories.
set mark-symlinked-directories on

## Moving, editing

# Allow to rebind C-w and C-u.
# https://lists.gnu.org/archive/html/bug-bash/2004-10/msg00053.html
set bind-tty-special-chars off

# By default it is bound to a dumber command ‘unix-word-rubout’ that
# uses spaces as the only word boundary.
"\C-w": backward-kill-word

"\C-u": universal-argument

# By analogy to Emacs’ ‘*-sexp’ commands:
"\e\C-b": shell-backward-word
"\e\eOd": shell-backward-word # <C-M-left>
"\e\C-f": shell-forward-word
"\e\eOc": shell-forward-word # <C-M-right>
"\e\C-k": shell-kill-word

## History

# Retrieve a matching command from history; on blank lines behaves
# identical to defaults.
"\C-p": history-search-backward
"\e[A": history-search-backward # <up>
"\C-n": history-search-forward
"\e[B": history-search-forward # <down>
"\ep": history-substring-search-backward
"\en": history-substring-search-forward

## Macros

"\C-x\C-k\C-m": print-last-kbd-macro

Исходная версия Zmicier, :

в ~/.inputrc есть смысл дописать:

Что, уже обмен дотфайлыми пошел?

# -*-conf-space-*-

$include /etc/inputrc

## Autocompletion

"\e\C-i": menu-complete
# "\e[Z": menu-complete-backward # S-TAB (URxvt)
"\C-i": complete
"\C-x\C-i": possible-completions

# Consistency with Emacs.
"\e/": dabbrev-expand
"\C-x/": dynamic-complete-history

# This was bound to M-/ and C-x / by default
"\e\e": complete-filename
"\C-x\e": possible-filename-completions

# The next <complete> after completing common prefix shows all.
set show-all-if-unmodified on

set skip-completed-text on

set completion-ignore-case on

# ‘-’ == ‘_’ for completion
set completion-map-case on

set print-completions-horizontally on

# Show type of filesystem resource in completion list according to stat(2):
# / - dirs, @ - symlinks, # - block devs, % - char devs, | - FIFOs.
set visible-stats on
set colored-stats on

set colored-completion-prefix on

# Append a slash to completed symlinks that point to directories as well as to
# actual directiories.
set mark-symlinked-directories on

## Moving, editing

# Allow to rebind C-w and C-u.
# https://lists.gnu.org/archive/html/bug-bash/2004-10/msg00053.html
set bind-tty-special-chars off

# By default it is bound to a dumber command ‘unix-word-rubout’ that
# uses spaces as the only word boundary.
"\C-w": backward-kill-word

"\C-u": universal-argument

# By analogy to Emacs’ ‘*-sexp’ commands:
"\e\C-b": shell-backward-word
"\e\eOd": shell-backward-word # <C-M-left>
"\e\C-f": shell-forward-word
"\e\eOc": shell-forward-word # <C-M-right>
"\e\C-k": shell-kill-word

## History

# Retrieve a matching command from history; on blank lines behaves
# identical to defaults.
"\C-p": history-search-backward
"\e[A": history-search-backward # <up>
"\C-n": history-search-forward
"\e[B": history-search-forward # <down>
"\ep": history-substring-search-backward
"\en": history-substring-search-forward

## Macros

"\C-x\C-k\C-m": print-last-kbd-macro