projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39667ea
)
added immediate history writes. thanks internets...
author
Chris Koeritz
<fred@gruntose.com>
Sun, 4 Sep 2016 19:33:17 +0000
(15:33 -0400)
committer
Chris Koeritz
<fred@gruntose.com>
Sun, 4 Sep 2016 19:33:17 +0000
(15:33 -0400)
scripts/core/launch_feisty_meow.sh
patch
|
blob
|
history
diff --git
a/scripts/core/launch_feisty_meow.sh
b/scripts/core/launch_feisty_meow.sh
index fec110793daf8d4ff2b679219129561402658dac..c130a00a0145a4b53ce1a2839bfbfe5e20d171b5 100644
(file)
--- a/
scripts/core/launch_feisty_meow.sh
+++ b/
scripts/core/launch_feisty_meow.sh
@@
-80,6
+80,15
@@
shopt -s checkwinsize
##############
+# make history writes immediate to avoid losing history if bash is zapped.
+echo $PROMPT_COMMAND | grep -q history
+if [ $? -ne 0 ]; then
+ # we only change the prompt command if we think it hasn't already been done.
+ export PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
+fi
+
+##############
+
if [ -z "$LIGHTWEIGHT_INIT" ]; then
# perform the bulkier parts of the initialization process.