Hacker News new | past | comments | ask | show | jobs | submit login

i'm not sure if it works in all shells, but at least in zsh/bash doing

   $ echo "this will not be saved in history"
 
as opposed to

   $echo "this will be saved in history"
can be useful



AFAIK, in bash/zsh you have to do

    export HISTCONTROL=ignoredups:ignorespace 
in .bashrc or .bash_profile for the above trick to work.

fish, OTOH, seems to do this by default.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: