For example if you ever need to find that command you once executed, or just because.
It will only take a few seconds to update your PROMPT_COMMAND so that it logs every command to a file.
And the next time you’re trying to remember the command line options you used with find that one time (but can’t find in your current session’s history), you’ll be able to look it up in the log files.
Oh, and if you want to know how many times you’ve done a git push in the last three and a half years, you can look that up, too (5,585 git pushes for me)!
Read the full instructions here at Atomic Object.
Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.
Join us every Wednesday night at 8pm ET for Ask an Engineer!
Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground” – Adafruit’s Apps!
Maker Business — “The Future of Vegas Revenue Is an Illusion”
Wearables — Tin efficiently
Electronics — Diamonds may be forever… but components? Not so much.
Biohacking — Kardia from AliveCor – Medical Grade EKG for Your Phone
No comments yet.
Sorry, the comment form is closed at this time.