If you use the Tab autocomplete, the CapsLock key
is often hit as well. Very annoying.
To disable CapsLock for this session:
xmodmap -e "remove lock = Caps_Lock"
To ensure it is disabled at login:
if [ "$PS1" ]; then
# Disables the %&*! CapsLock button
xmodmap -e "remove lock = Caps_Lock"
...
fi
in ~/.bashrc or /etc/bashrc (Fedora/RedHat/Centos)
Thanks to Peter Bengtsson (peterbe.com)