Add .inputrc and readline macros in bashrc
This commit is contained in:
parent
6d036476e4
commit
8e2c9918ab
2 changed files with 30 additions and 0 deletions
|
|
@ -108,3 +108,9 @@ function b64dec() {
|
|||
# Shortcuts for dig with less output
|
||||
alias digs='dig +short'
|
||||
alias digrr='dig +noall +answer'
|
||||
|
||||
# Readline macro Ctrl-Alt-L: Append "| less" to current command
|
||||
bind '"\e\C-l": "\C-e | less"'
|
||||
|
||||
# Readline macro Ctrl-Alt-B: Append ">/dev/null 2>&1 &" to current command
|
||||
bind '"\e\C-b": "\C-e >/dev/null 2>&1 &"'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue