Add .profile

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2016-09-11 18:00:03 +02:00
parent 9547aa3ee3
commit 3aee19333c
4 changed files with 36 additions and 7 deletions

View file

@ -1,5 +1,13 @@
# 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
source $HOME/.bashrc