This commit is contained in:
Michael Zhang 2020-06-15 05:47:49 -05:00
parent 379cda34e5
commit c73337fb8d
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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