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