17 lines
461 B
Bash
17 lines
461 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" != "" ]]; then
|
|
/usr/bin/byobu-screen -xR -S sshscreen && exit
|
|
fi
|