From 23af29953865e0d174bd1a3500925e290f6bd4b4 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Fri, 3 May 2019 10:46:18 +0200 Subject: [PATCH] Auto weekly update --- tforgione.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tforgione.sh b/tforgione.sh index 464acf8..3575342 100755 --- a/tforgione.sh +++ b/tforgione.sh @@ -151,6 +151,10 @@ clone_dotfiles() { fi git_clone https://gitea.tforgione.fr/tforgione/dotfiles/ $HOME/.config/dotfiles + + echo "# Checks that the update is done weekly, if its not done, prints a nice message" > $HOME/.config/dotfiles/zsh/extraconfig.zsh + echo "export UPDATE_CHECK=weekly" >> $HOME/.config/dotfiles/zsh/extraconfig.zsh + mkdir -p $HOME/.config/dotfiles/.data if [ "$sudo_available" != "true" ]; then @@ -185,6 +189,10 @@ configure_shell() { rm -f $HOME/.bashrc ln -s `realpath $HOME/.config/dotfiles/bashrc` `realpath $HOME/.bashrc` + mkdir -p $HOME/.config/dotfiles/bash + echo "# Checks that the update is done weekly, if its not done, prints a nice message" > $HOME/.config/dotfiles/bash/extraconfig.bash + echo "export UPDATE_CHECK=weekly" >> $HOME/.config/dotfiles/bash/extraconfig.bash + info "bashrc configured successfully" return