Поиск по истории команд в bash
All checks were successful
Build MkDocs / build-and-deploy (push) Successful in 3s
All checks were successful
Build MkDocs / build-and-deploy (push) Successful in 3s
This commit is contained in:
19
docs/servers/misc.md
Normal file
19
docs/servers/misc.md
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# Разное
|
||||||
|
|
||||||
|
## Поиск по истории команд в bash
|
||||||
|
|
||||||
|
Включаем поиск по истории команд `bash` по префиксу.
|
||||||
|
|
||||||
|
=== "Терминал"
|
||||||
|
|
||||||
|
```sh
|
||||||
|
nano ~/.inputrc
|
||||||
|
bind -f ~/.inputrc
|
||||||
|
```
|
||||||
|
|
||||||
|
=== ".inputrc"
|
||||||
|
|
||||||
|
```sh
|
||||||
|
"\e[A": history-search-backward
|
||||||
|
"\e[B": history-search-forward
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user