dotfiles/.bash_profile
Severin Kaderli 53bb4c8c79 Rename crontab to .crontab and activate it in .bash_profile
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
2016-09-18 11:11:56 +02:00

17 lines
426 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
# Activate correct crontab file
crontab -u severin $HOME/.crontab
# If we are on tty1 we start the x-server
if [ "$(tty)" = "/dev/tty1" ]; then
startx && exit
fi