dotfiles/home/.bash_profile
2015-10-18 12:23:39 +02:00

17 lines
489 B
Bash

# if running bash
if [ -n "$BASH_VERSION" ] && [ -f "$HOME/.bashrc" ]; then
source "$HOME/.bashrc"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ]; then
PATH="$HOME/bin:$PATH"
fi
# start gui
if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq "1" ]; then
exec startx
# start byobu session
elif [[ "$TERM" != "screen-bce" && "$SSH_CONNECTION" != "" && "$HOSTNAME" != "cam-deb" ]]; then
/usr/bin/byobu-screen -xR -S sshscreen && exit
fi