Flush the history to file every time we see a new command prompt.
Answer
history -a
Tags
#bash #unix
Question
Flush the history to file every time we see a new command prompt.
Answer
?
Tags
#bash #unix
Question
Flush the history to file every time we see a new command prompt.
Answer
history -a
If you want to change selection, open document below and click on "Move attachment"
Someday Never Comes: Share your Bash history across terminals in Terminator nfiguration files, .bashrc for instance. #save history after every command #use 'history -r' to reload history PROMPT_COMMAND="history -a ; $PROMPT_COMMAND" What we are saying here is to invoke <span>history -a with every new command prompt line. This flush the history to file every time we see a new command prompt. You can verify this if you monitory you .bash_history file. Have we reached wh
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.