|
|
@ -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
|
|
|
|