Now creates .zshrc backup to .zshrc-backup-date

This commit is contained in:
JGill
2019-12-06 14:16:48 +10:30
parent 9dc22b3ec3
commit f20ee0051c

View File

@@ -11,8 +11,8 @@ else
fi
if mv -n ~/.zshrc ~/.zshrc-backup; then # if already have zshrc-backup, keep it, don't overwrite
echo -e "Backed up the current .zshrc to .zshrc-backup\n"
if mv -n ~/.zshrc ~/.zshrc-backup-$(date +"%Y-%m-%d"); then # backup .zshrc
echo -e "Backed up the current .zshrc to .zshrc-backup-date\n"
fi