linux:general_bash-ery

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux:general_bash-ery [2023/04/10 11:26] mguptonlinux:general_bash-ery [2023/04/10 11:35] (current) – [Command Delimiter] mgupton
Line 27: Line 27:
  
 ====== Command Delimiter ====== ====== Command Delimiter ======
-Automatically run a command after every command ran in the shell that prints a line includes that includes the current time. It makes it easier to spot commands being ran when scrolling back in the terminal.+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> <code bash>
 PROMPT_COMMAND='printf "\e[32m---------------------------$(date +%Y-%m-%dT%H:%M:%S%z)---------------------------\n\e[0m"' PROMPT_COMMAND='printf "\e[32m---------------------------$(date +%Y-%m-%dT%H:%M:%S%z)---------------------------\n\e[0m"'
  • linux/general_bash-ery.1681125972.txt.gz
  • Last modified: 2023/04/10 11:26
  • by mgupton