# # ~/.bash_profile # [[ -f ~/.bashrc ]] && . ~/.bashrc # Set numlock if running in tty. # (numlock for X is set in ~/.xinitrc) case $(tty) in /dev/tty[0-9]*) setleds -D +num export USING_TTY=1 ;; esac