Tuesday, May 19, 2015

force basg to write history after each command in bash console linux/psql client

This is the reductio

in bash.bashrc or .bashrc find and substitute accordingl

shopt -s histappend
PROMPT_COMMAND = ...whatever you already have ....
PROMPT_COMMAND="history -a;$PROMPT_COMMAND"

No comments:

Post a Comment

cancel script completely on ctrl-c

I found this question interesting: basically how to cancel completely a script and all child processes : You do this by creating a subro...