Add bash history save on every command
This commit is contained in:
parent
f6420c27ff
commit
92cc0c6aa6
@ -1,6 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
#ft=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
|
# Disable capslock
|
||||||
if [[ -x $(which setxkbmap) ]] && [[ $(uname) == Linux ]]; then
|
if [[ -x $(which setxkbmap) ]] && [[ $(uname) == Linux ]]; then
|
||||||
setxkbmap -option ctrl:nocaps
|
setxkbmap -option ctrl:nocaps
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user