HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

bind — Bash builtin to manage bash hotkeys and variables. More information: <https://www.gnu.org/software/b

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandbindhotkeysclimanagebuiltinbash

Problem

How to use the bind command: Bash builtin to manage bash hotkeys and variables. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-bind>.

Solution

bind — Bash builtin to manage bash hotkeys and variables. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-bind>.

List all bound commands and their hotkeys:
bind {{-p|-P}}


Query a command for its hotkey:
bind -q {{command}}


Bind a key:
bind -x '"{{key_sequence}}":{{command}}'


List user defined bindings:
bind -X


Display help:
help bind

Code Snippets

List all bound commands and their hotkeys

bind {{-p|-P}}

Query a command for its hotkey

bind -q {{command}}

Bind a key

bind -x '"{{key_sequence}}":{{command}}'

List user defined bindings

bind -X

Display help

help bind

Context

tldr-pages: common/bind

Revisions (0)

No revisions yet.