diff --git a/fake_home/.zlogin b/fake_home/.zlogin index 17ae67d..c88cf04 100644 --- a/fake_home/.zlogin +++ b/fake_home/.zlogin @@ -1,3 +1,11 @@ date >> "$HOME/.tmp/getdot-log" echo "~/zlogin, babyyy" >> "$HOME/.tmp/getdot-log" -RUN_GETDOT="true" GETDOT_ARGS="--skip-dconf" source "$HOME/.zshrc" + +LOGIN_SYNC_DATE="$HOME/.bin/.login-dot-sync" + +touch $LOGIN_SYNC_DATE +current_date="$(date '+%D')" +if [[ "$current_date" != "$(cat "$LOGIN_SYNC_DATE")" ]]; then + RUN_GETDOT="true" GETDOT_ARGS="--skip-dconf" source "$HOME/.zshrc" +fi +echo "$current_date" > "$LOGIN_SYNC_DATE"