Move .crontab to .config/cron/crontab

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2019-02-05 15:50:14 +01:00
parent 4d9092f4b7
commit d2a27f0df5
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
8 changed files with 220 additions and 33 deletions

View file

@ -23,7 +23,7 @@ fi
dconf load / < "${HOME}/.config/dconf/root.conf"
# Activate correct crontab file
crontab "${HOME}/.crontab"
crontab "${$XDG_CONFIG_HOME}/cron/crontab"
# If we are on tty1 we start the x-server
if [ "$(tty)" = "/dev/tty1" ]; then

View file

@ -17,6 +17,11 @@ shopt -s histappend
shopt -s checkwinsize
shopt -s globstar
# Sourcing environment variables
if [ -f "${HOME}/.env" ]; then
. "${HOME}/.env"
fi
# Enable color support of ls
if [ -f "${HOME}/.dircolors" ]; then
dircolors -b "${HOME}/.dircolors" > /dev/null 2>&1
@ -36,9 +41,4 @@ fi
if [ -f "/usr/share/bash-completion/bash_completion" ]; then
. /usr/share/bash-completion/bash_completion
fi
complete -cf sudo
# Sourcing alias definitions
if [ -f "${HOME}/.env" ]; then
. "${HOME}/.env"
fi
complete -cf sudo

View file

@ -1,5 +1,5 @@
# SCRIPT NAME:
# .crontab
# .config/cron/crontab
#
# AUTHOR:
# Severin Kaderli <severin.kaderli@gmail.com>

View file

@ -13,6 +13,11 @@
# This script is sourced by .bashrc
. "${HOME}/bin/utils.sh"
# XDG_Base_Directories
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
# Bash
export HISTCONTROL=ignoreboth
export HISTSIZE=1000