Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux:general_bash-ery [2023/01/12 16:35] – mgupton | linux:general_bash-ery [2023/04/10 11:35] (current) – [Command Delimiter] mgupton | ||
---|---|---|---|
Line 7: | Line 7: | ||
* '' | * '' | ||
- | === Command Line Search === | + | === Command Line History |
- | Use Ctrl-r to reverse search command history and Ctrl+s to forward search | + | Use '' |
+ | |||
+ | Add the following to the '' | ||
<code bash> | <code bash> | ||
stty -ixon # enabled forward search with Ctrl+s by disabling XON/XOFF flow control | stty -ixon # enabled forward search with Ctrl+s by disabling XON/XOFF flow control | ||
Line 19: | Line 21: | ||
* Opens the current command line in the default editor. For '' | * Opens the current command line in the default editor. For '' | ||
* '' | * '' | ||
+ | |||
+ | ====== History ====== | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ====== Command Delimiter ====== | ||
+ | Automatically run a command after every command ran in the shell that prints a line that includes the current time. It makes it easier to spot commands being ran when scrolling back in the terminal. | ||
+ | <code bash> | ||
+ | PROMPT_COMMAND=' | ||
+ | </ | ||
+ | |||
+ | Example output | ||
+ | < | ||
+ | ---------------------------2023-04-07T21: | ||
+ | </ | ||
+ |