diff --git a/README.md b/README.md index e90336e..c20a7f9 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ source $HOME/.zshrc Alternatively, use the shortened url: ```zsh # Download setup file and execute it -curl -L 301.sup39.ml/zsh-setup | sh - +curl -sL 301.sup39.ml/zsh-setup | sh - # Finally, source the zshrc file source $HOME/.zshrc @@ -21,12 +21,7 @@ source $HOME/.zshrc ``` ## Content - -### zshrc +- `~/.zshenv` - `~/.zshrc` -### [vimrc](https://github.com/sup39/vimrc) -- `~/.vim/sup39` -- `~/.vimrc` - :bulb: No overwriting if exists diff --git a/setup.sh b/setup.sh index 92f76f8..e6f9328 100644 --- a/setup.sh +++ b/setup.sh @@ -3,11 +3,3 @@ [ -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/zshenv -o $HOME/.zshenv - -# .vim/sup39 -[ -d $HOME/.vim/sup39 ] || git clone https://github.com/sup39/vimrc $HOME/.vim/sup39 -# .vimrc -[ -f $HOME/.vimrc ] || cat >$HOME/.vimrc < bindkey -Mviins -s jk '\e' -# map ¥ to \ -bindkey -Mvicmd -s r¥ 'r\' -bindkey -Mviins -s ¥ '\\' ## Edit # edit zshrc vizr() {vi $HOME/.zshrc && source $HOME/.zshrc} -sczr() {source $HOME/.zshrc} +# edit zshenv +vize() {vi $HOME/.zshenv && . $HOME/.zshenv} # edit zprofile vizp() {vi $HOME/.zprofile && . $HOME/.zprofile} # edit vimrc @@ -55,5 +53,4 @@ zle -N zle-keymap-select ## Alias alias vi='vim' -alias curl-json='curl -H"Content-Type:application/json"' -alias rand-sel='shuf -n1 -e --' +alias ls='ls --color=auto'