bash history not saved if exiting by clicking x

Gary Siaw
2013-11-06
2013-11-06
  • Gary Siaw

    Gary Siaw - 2013-11-06

    i have a console window running bash.exe (for gitbash) that sets the HISTFILE to a certain file.

    If i click the x button at top right, to close the console window, nothing gets saved to HISTFILE.
    but if i type "exit" to close the console window, the history is appended to HISTFILE.

    does anyone have any remedies for this? other than NOT to close the window by clicking the "x" ??

     
    Last edit: Gary Siaw 2013-11-06

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks