aboutsummaryrefslogtreecommitdiff
path: root/bash/.bashrc
blob: 49dc3e32462e16ab0357f9dafc2314c21c9f76e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# If not running interactively, don't do anything
[[ $- != *i* ]] && return

host=`hostname`

if [ $host = "automatix" ] || [ $host = "asterix" ]; then
	[ -z "$TMUX" ] && { tmux attach || exec tmux new && exit; }
fi

if [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]]; then
	exec startx
fi

if [[ "$TERM" != linux ]]; then
	exec fish
fi