dotfiles/.bash_profile
Severin Kaderli 3aee19333c Add .profile
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
2016-09-11 18:00:03 +02:00

13 lines
317 B
Bash

# If .bash_profile exists, bash doesn't read .profile
if [[ -f $HOME/.profile ]]; then
. $HOME/.profile
fi
# If the shell is interactive and .bashrc exists, get the aliases and functions
if [[ $- == *i* && -f $HOME/.bashrc ]]; then
. $HOME/.bashrc
fi
if [ "$(tty)" = "/dev/tty1" ]; then
startx && exit
fi