Difference between revisions of "Bindkey"

From wikieduonline
Jump to navigation Jump to search
(Created page with " "^@" set-mark-command "^A" beginning-of-line "^B" backward-char "^D" delete-char-or-list "^E" end-of-line "^F" forward-char "^G" send-break "^H" backward-delete-char...")
 
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{lc}}
 +
* https://www.manpagez.com/man/1/bindkey/
 +
bindkey
 +
[[bindkey -e]]
 +
[[bindkey -l]]
 +
[[bindkey -s]]
  
 +
List key mappings:
 +
* [[bindkey -l]]
  
 +
 +
[[bindkey -M main]]
 +
 +
type bindkey
 +
bindkey [[is a shell builtin]]
 +
 +
 +
[[hsrt]]
 +
[[bindkey -s]] "\C-r" "\C-a hstr -- \C-j"    # bind hstr to Ctrl-r (for Vi mode check doc)
 +
 +
bindkey
 
  "^@" set-mark-command
 
  "^@" set-mark-command
 
  "^A" beginning-of-line
 
  "^A" beginning-of-line
Line 119: Line 138:
 
  "\M-^@"-"\M-^?" self-insert
 
  "\M-^@"-"\M-^?" self-insert
  
 +
== Related ==
 +
* <code>[[screen]]</code>
 +
* <code>[[bindkey -e]]</code>
 +
* [[hstr]]
  
 +
== See also ==
 
* {{bindkey}}
 
* {{bindkey}}
 +
* {{zsh}}
 +
 +
[[Category:Shell]]

Latest revision as of 16:57, 2 April 2023

bindkey
bindkey -e
bindkey -l
bindkey -s

List key mappings:


bindkey -M main
type bindkey
bindkey is a shell builtin


hsrt

bindkey -s "\C-r" "\C-a hstr -- \C-j"     # bind hstr to Ctrl-r (for Vi mode check doc)
bindkey
"^@" set-mark-command
"^A" beginning-of-line
"^B" backward-char
"^D" delete-char-or-list
"^E" end-of-line
"^F" forward-char
"^G" send-break
"^H" backward-delete-char
"^I" expand-or-complete
"^J" accept-line
"^K" kill-line
"^L" clear-screen
"^M" accept-line
"^N" down-line-or-history
"^O" accept-line-and-down-history
"^P" up-line-or-history
"^Q" push-line
"^R" history-incremental-search-backward
"^S" history-incremental-search-forward
"^T" transpose-chars
"^U" kill-whole-line
"^V" quoted-insert
"^W" backward-kill-word
"^X^B" vi-match-bracket
"^X^F" vi-find-next-char
"^X^J" vi-join
"^X^K" kill-buffer
"^X^N" infer-next-history
"^X^O" overwrite-mode
"^X^U" undo
"^X^V" vi-cmd-mode
"^X^X" exchange-point-and-mark
"^X*" expand-word
"^X=" what-cursor-position
"^XG" list-expand
"^Xg" list-expand
"^Xr" history-incremental-search-backward
"^Xs" history-incremental-search-forward
"^Xu" undo
"^Y" yank
"^[^D" list-choices
"^[^G" send-break
"^[^H" backward-kill-word
"^[^I" self-insert-unmeta
"^[^J" self-insert-unmeta
"^[^L" clear-screen
"^[^M" self-insert-unmeta
"^[^_" copy-prev-word
"^[ " expand-history
"^[!" expand-history
"^[\"" quote-region
"^[\$" spell-word
"^['" quote-line
"^[-" neg-argument
"^[." insert-last-word
"^[0" digit-argument
"^[1" digit-argument
"^[2" digit-argument
"^[3" digit-argument
"^[4" digit-argument
"^[5" digit-argument
"^[6" digit-argument
"^[7" digit-argument
"^[8" digit-argument
"^[9" digit-argument
"^[<" beginning-of-buffer-or-history
"^[>" end-of-buffer-or-history
"^[?" which-command
"^[A" accept-and-hold
"^[B" backward-word
"^[C" capitalize-word
"^[D" kill-word
"^[F" forward-word
"^[G" get-line
"^[H" run-help
"^[L" down-case-word
"^[N" history-search-forward
"^[OA" up-line-or-history
"^[OB" down-line-or-history
"^[OC" forward-char
"^[OD" backward-char
"^[P" history-search-backward
"^[Q" push-line
"^[S" spell-word
"^[T" transpose-words
"^[U" up-case-word
"^[W" copy-region-as-kill
"^[[200~" bracketed-paste
"^[[A" up-line-or-history
"^[[B" down-line-or-history
"^[[C" forward-char
"^[[D" backward-char
"^[_" insert-last-word
"^[a" accept-and-hold
"^[b" backward-word
"^[c" capitalize-word
"^[d" kill-word
"^[f" forward-word
"^[g" get-line
"^[h" run-help
"^[l" down-case-word
"^[n" history-search-forward
"^[p" history-search-backward
"^[q" push-line
"^[s" spell-word
"^[t" transpose-words
"^[u" up-case-word
"^[w" copy-region-as-kill
"^[x" execute-named-cmd
"^[y" yank-pop
"^[z" execute-last-named-cmd
"^[|" vi-goto-column
"^[^?" backward-kill-word
"^_" undo
" "-"~" self-insert
"^?" backward-delete-char
"\M-^@"-"\M-^?" self-insert

Related[edit]

See also[edit]

Advertising: