dotfiles/system/.bash_profile
Severin Kaderli d2a27f0df5
Move .crontab to .config/cron/crontab
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
2019-02-05 15:50:14 +01:00

31 lines
No EOL
648 B
Bash

#!/bin/bash
#
# SCRIPT NAME:
# .bash_profile
#
# AUTHOR:
# Severin Kaderli <severin.kaderli@gmail.com>
#
# DESCRIPTION:
# This script is called when you start a login shell.
#
# USAGE:
# This script is automatically executed when you start a login shell.
if [[ -f "${HOME}/.bashrc" ]]; then
. "${HOME}/.bashrc"
fi
if [[ -f "${HOME}/.keyleds" ]]; then
. "${HOME}/.keyleds"
fi
# Restore custom dconf configuration
dconf load / < "${HOME}/.config/dconf/root.conf"
# Activate correct crontab file
crontab "${$XDG_CONFIG_HOME}/cron/crontab"
# If we are on tty1 we start the x-server
if [ "$(tty)" = "/dev/tty1" ]; then
startx && exit
fi