aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-07-25 10:34:36 +0200
committerCharles Cabergs <me@cacharle.xyz>2021-07-25 10:34:36 +0200
commit1c2e8586f4d9cd147bbf245194beb08de1f97701 (patch)
treef9ace458c38e0a1a29d0e07fd1a074eb76d1599d /install
parent578b88abc88697409f4885f47ef2c4754201ef7f (diff)
downloaddotfiles-1c2e8586f4d9cd147bbf245194beb08de1f97701.tar.gz
dotfiles-1c2e8586f4d9cd147bbf245194beb08de1f97701.tar.bz2
dotfiles-1c2e8586f4d9cd147bbf245194beb08de1f97701.zip
Added crontab for pacman, clout and newsboat
Diffstat (limited to 'install')
-rwxr-xr-xinstall14
1 files changed, 12 insertions, 2 deletions
diff --git a/install b/install
index 01cfe43..e7f8d5d 100755
--- a/install
+++ b/install
@@ -1,5 +1,7 @@
#!/bin/sh
+[ "$USER" = 'root' ] && { crontab 'crontab/root.crontab' ; exit ; }
+
mkdir -pv "$XDG_CONFIG_HOME"
mkdir -pv "$XDG_DATA_HOME"
mkdir -pv "$XDG_CACHE_HOME"
@@ -30,7 +32,7 @@ link_home_files 'local' "$HOME/.local"
ln -svf "$(pwd)/config/zsh/zprofile" "$HOME/.zprofile"
################################################################################
-# cacharle-sync install
+# sync install
################################################################################
CACHARLE_SYNC_PATH="$HOME/cacharle-sync"
@@ -39,7 +41,7 @@ CACHARLE_SYNC_PATH="$HOME/cacharle-sync"
################################################################################
# vim plug
-###############################################################################
+################################################################################
echo '---------------------------- INSTALL VIM PLUG ----------------------------'
PLUGFILE="$XDG_DATA_HOME/vim/autoload/plug.vim"
@@ -66,3 +68,11 @@ mkdir -p "$XDG_DATA_HOME/zsh"
update_zsh_plugin 'https://github.com/sindresorhus/pure'
update_zsh_plugin 'https://github.com/zsh-users/zsh-syntax-highlighting'
update_zsh_plugin 'https://github.com/MichaelAquilina/zsh-you-should-use'
+
+###############################################################################
+# crontab
+###############################################################################
+
+echo '---------------------------- INSTALL CRONTAB -----------------------------'
+crontab 'crontab/user.crontab'
+echo 'INFO: Run this script as root if you want to install the root contab'