jedahan / zr

zsh plugin manager written in rust
Mozilla Public License 2.0
180 stars 12 forks source link

docs: generate ~/.zr/init.zsh when it is not exist #20

Closed foray1010 closed 6 years ago

foray1010 commented 6 years ago

current docs confused new users as they cannot generate ~/.zr/init.zsh by just following the readme

jedahan commented 6 years ago

I also switched to [[ and added mkdir in case ~/.zr does not exist https://github.com/jedahan/zr/commit/343d8c9904e29d7c653ce8ada2444528cbefca3b

# Generate new ~/.zr/init.zsh if it does not exist or ~/.zshrc is newer
if [[ ! -f ~/.zr/init.zsh ]] || [[ ~/.zshrc -nt ~/.zr/init.zsh ]]; then
  test -d ~/.zr || mkdir $_
foray1010 commented 6 years ago

i guess mkdir is not needed as zr somehow automatically created for me

jedahan commented 6 years ago

<3 when users know the software better than the author :) . Removed in https://github.com/jedahan/zr/commit/dff1ef625dc3ef7096e442b62fca9c8cdd9ea5c4