Quantcast
Channel: Execute a terminal command without saving it to .bash_history on OS X? - Super User
Browsing all 3 articles
Browse latest View live

Answer by goweon for Execute a terminal command without saving it to...

Add the following line to ~/.bashrcexport HISTCONTROL=ignorespaceThen source ~/.bashrc to refresh the settingsThis should enable that feature in bash. If it doesn't work, you might have to add it to...

View Article



Answer by warren for Execute a terminal command without saving it to...

If you're not concerned about keeping the session active, this may work:kill -9 $$It will kill the current session instead of logging-out, which [theoretically] means your history will not be saved.

View Article

Image may be NSFW.
Clik here to view.

Execute a terminal command without saving it to .bash_history on OS X?

This site says that on Linux you can add a space before a terminal command to keep it out of .bash_history.This does not seem to work for Mac OS X. Does anyone know of a way to execute a single command...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images