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 [2022/12/28 19:03] – mgupton | linux:general_bash-ery [2023/04/10 11:35] (current) – [Command Delimiter] mgupton | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== General Bash-ery ====== | ====== General Bash-ery ====== | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| - | === 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 13: | 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: | ||
| + | </ | ||
| + | |||