Temporarily Disabling Bash History

Say that you’ve got to pass some password as a command-line argument to something. It would probably be a bad idea to store it in your ~/.bash_history, but clearing the file isn’t desired either. So you need to temporarily disable the command history for the current session. You can do it by unsetting the HISTFILE environment variable.

unset HISTFILE

The result is that while the session is active, you can access the history as usual, but it won’t be saved to disk. History for other sessions will behave as usual.

search_for_updates 0.2

This is a small update to my search_for_updates script, which has been lying around. The script allows you to search for updates from Portage without resolving dependencies. Thus, it’s much faster than

emerge -pvu world

The new version lists the best version available for each package that can be updated using the --verbose flag. You can download the new version here: search_for_updates-0.2.