From c73337fb8d52fc2a3cd745de21fa8841109aeb61 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Mon, 15 Jun 2020 05:47:49 -0500 Subject: [PATCH] rip --- dot_local/scripts/zsh/executable_check-update.zsh | 2 +- run_10_resolve_locations.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dot_local/scripts/zsh/executable_check-update.zsh b/dot_local/scripts/zsh/executable_check-update.zsh index a2d05cb..68f37a9 100644 --- a/dot_local/scripts/zsh/executable_check-update.zsh +++ b/dot_local/scripts/zsh/executable_check-update.zsh @@ -10,7 +10,7 @@ function checkUpdate() { lastUpdate=$(cat $lastUpdateFile) now=$(date "+%s") - if [ $(( $now - $lastUpdate > 604800 )) ]; then + if [[ $(( $now - $lastUpdate > 604800 )) -ne "0" ]]; then echo "this system hasn't been updated for over a week" echo "run system-upgrade.sh asap" return diff --git a/run_10_resolve_locations.sh b/run_10_resolve_locations.sh index 6e2a989..9b557b3 100755 --- a/run_10_resolve_locations.sh +++ b/run_10_resolve_locations.sh @@ -2,3 +2,5 @@ zshHighlight=$(locate zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | head -n 1) echo "source $zshHighlight" >> $HOME/.zshrc + +echo "source <(chezmoi completion zsh)" >> $HOME/.zshrc