Hacker News new | ask | show | jobs
by TheGrassyKnoll 3279 days ago
Its considered kind of a security risk, but I like to save ALL of my commands: (put this in .bashrc)

  export PROMPT_COMMAND='echo "$(history 1)" >> $HOME/.basheternalhistory'  
Now you can search it later for arcane commands you've forgotten how to use.