yb303
Joined 5 years ago
Karma
39
Submissions
15
Member since
Jul 7
Joined 5 years ago
Bash has a hook (cannot remember the name on my phone) that is called on every command.
It's easy enough to write into a file the command together with the directory and git branch.
Then I can grep it with a bash function that colors the dir and branch in the output.
It does not replace ctrl-r but it's a great addition especially when running multiple sessions and bash saving just the last one
Is this enough? What about the function's side effects? If the function changed 1000 variables with the wrong + definition, is it going to roll them back?
- Not use Intel processors, as many are developed in Haifa
- Not use a firewall. It was invented in the IDF.
- Not use Waze. It's Israeli.
- Not use thumb drives. Invented in Israel.
- Not eat cherry tomatoes. Israeli development.
The list goes on and on, but I must add - if you ever suffer a serious head or stomach injury, tell the medics to not use the Israeli bandage.