Add bash history save on every command

main
Buddy Sandidge 3 years ago
parent f6420c27ff
commit 92cc0c6aa6

@ -1,6 +1,11 @@
#!/usr/bin/env bash
#ft=bash
# always save bash history before showing prompt; allow reloading bashrc
if [[ ! "$PROMPT_COMMAND" =~ "history -a" ]]; then
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
fi
# Disable capslock
if [[ -x $(which setxkbmap) ]] && [[ $(uname) == Linux ]]; then
setxkbmap -option ctrl:nocaps

Loading…
Cancel
Save