bash only run bashrc

This commit is contained in:
Luke Smith 2018-12-30 18:41:34 -05:00
parent e6af94f126
commit 146f9f6cc8

View file

@ -25,10 +25,10 @@ export LESS_TERMCAP_ue=$'\E[0m' # reset underline
[ ! -f ~/.shortcuts ] && shortcuts >/dev/null 2>&1 [ ! -f ~/.shortcuts ] && shortcuts >/dev/null 2>&1
[ -f ~/.bashrc ] && source "$HOME/.bashrc" echo "$0" | grep "bash$" >/dev/null && [ -f ~/.bashrc ] && source "$HOME/.bashrc"
# Start graphical server if i3 not already running. # Start graphical server if i3 not already running.
[ "$(tty)" = "/dev/tty1" ] && ! pgrep -x i3 >/dev/null && exec startx [ "$(tty)" = "/dev/tty1" ] && ! pgrep -x i3 >/dev/null && exec startx
# Switch escape and caps and use wal colors if tty: # Switch escape and caps if tty:
sudo -n loadkeys ~/.scripts/ttymaps.kmap 2>/dev/null sudo -n loadkeys ~/.scripts/ttymaps.kmap 2>/dev/null