Windows/Nix
Pages
Home
Contact Me
YouTube Channel
Tuesday, September 30, 2014
Save history immediately
To force bash to save each command you type instead of waiting for the session to terminate, edit .bash_profile that is located in your home directory:
vi ~/.bash_profile
export PROMPT_COMMAND='history -a'
No comments:
Post a Comment
Newer Post
Older Post
Home
No comments:
Post a Comment