17 lines
444 B
Bash
17 lines
444 B
Bash
#
|
|
# ~/.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
|
|
# Temporary fix for a systemd bug related to systemd --user timers that run on login
|
|
[[ -z "$DBUS_SESSION_BUS_ADDRESS" ]] && printf "%bWARNING: \$DBUS_SESSION_BUS_ADDRESS is unset! %b\n" "$(tput bold)$(tput setab 1)" "$(tput sgr0)"
|
|
;;
|
|
esac
|