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/03/28 00:52] – [General Bash-ery] mgupton | linux:general_bash-ery [2023/04/10 11:35] (current) – [Command Delimiter] mgupton | ||
---|---|---|---|
Line 8: | Line 8: | ||
=== Command Line History Search === | === Command Line History Search === | ||
- | 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 23: | Line 25: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | |||
+ | ====== 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: | ||
+ | </ | ||