remove vimrc from zsh-setup; simplify zshrc
This commit is contained in:
parent
99d5cb409d
commit
a137182b35
3 changed files with 5 additions and 21 deletions
|
@ -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
|
||||
|
|
8
setup.sh
8
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 <<EOF
|
||||
" source $HOME/.vim/sup39/plug.vim
|
||||
source $HOME/.vim/sup39/vimrc
|
||||
EOF
|
||||
|
|
9
zshrc
9
zshrc
|
@ -14,14 +14,12 @@ setopt appendhistory
|
|||
bindkey -v
|
||||
# imap jk to <ESC>
|
||||
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'
|
||||
|
|
Loading…
Reference in a new issue