Don't choke on empty zshrc.

pull/328/head
Roman Perepelitsa 5 years ago committed by GitHub
parent 50c8214038
commit fc0274de2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1368,8 +1368,8 @@ function ask_zshrc_edit() {
cp -p $__p9k_zshrc $zshrc_backup || quit -c cp -p $__p9k_zshrc $zshrc_backup || quit -c
print -r -- $zshrc_content >$zshrc_backup || quit -c print -r -- $zshrc_content >$zshrc_backup || quit -c
zshrc_backup_u=${${TMPDIR:+\$TMPDIR}:-/tmp}/${(q-)zshrc_backup:t} zshrc_backup_u=${${TMPDIR:+\$TMPDIR}:-/tmp}/${(q-)zshrc_backup:t}
break
fi fi
break
;; ;;
esac esac
done done

Loading…
Cancel
Save