mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-21 20:24:09 +02:00
history: add and example to add to history without running (#17674)
This commit is contained in:
parent
fab44cc065
commit
72adae9049
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
# history
|
# history
|
||||||
|
|
||||||
> Command-line history.
|
> Manage command-line history.
|
||||||
> More information: <https://www.gnu.org/software/bash/manual/html_node/Bash-History-Builtins.html#index-history>.
|
> More information: <https://www.gnu.org/software/bash/manual/html_node/Bash-History-Builtins.html#index-history>.
|
||||||
|
|
||||||
- Display the commands history list with line numbers:
|
- Display the commands history list with line numbers:
|
||||||
|
@ -26,3 +26,7 @@
|
||||||
- [d]elete the history entry at the specified offset:
|
- [d]elete the history entry at the specified offset:
|
||||||
|
|
||||||
`history -d {{offset}}`
|
`history -d {{offset}}`
|
||||||
|
|
||||||
|
- Add a command to history without running it:
|
||||||
|
|
||||||
|
`history -s {{command}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue