diff --git a/README.md b/README.md index becc2f1..e90336e 100644 --- a/README.md +++ b/README.md @@ -7,11 +7,8 @@ source $HOME/.zshrc ``` Alternatively, use the shortened url: ```zsh -# Try the following command -# until the first line of the content becomes `#!/bin/sh` -curl -L pr8.work/0/sup39-zsh -# and then execute the setup script -curl -L pr8.work/0/sup39-zsh | sh - +# Download setup file and execute it +curl -L 301.sup39.ml/zsh-setup | sh - # Finally, source the zshrc file source $HOME/.zshrc @@ -24,13 +21,12 @@ source $HOME/.zshrc ``` ## Content + ### zshrc - `~/.zshrc` -:warning: *OVERWRITE* if exists - ### [vimrc](https://github.com/sup39/vimrc) - `~/.vim/sup39` - `~/.vimrc` -:bulb: No overwriting +:bulb: No overwriting if exists diff --git a/setup.sh b/setup.sh index 0c5f3c5..997e72f 100644 --- a/setup.sh +++ b/setup.sh @@ -1,6 +1,9 @@ #!/bin/sh # .zshrc -curl https://raw.githubusercontent.com/sup39/zsh-setup/master/zshrc -o $HOME/.zshrc +[ -f $HOME/.zshrc ] || curl https://raw.githubusercontent.com/sup39/zsh-setup/master/zshrc -o $HOME/.zshrc +# .zshenv +[ -f $HOME/.zshenv ] || curl https://raw.githubusercontent.com/sup39/zsh-setup/master/zprofile -o $HOME/.zshenv + # .vim/sup39 [ -d $HOME/.vim/sup39 ] || git clone https://github.com/sup39/vimrc $HOME/.vim/sup39 # .vimrc diff --git a/zshenv b/zshenv new file mode 100644 index 0000000..d46bf43 --- /dev/null +++ b/zshenv @@ -0,0 +1 @@ +export EDITOR=vim