syui 2 years ago
parent
commit
759391d5c0
  1. 13
      .zshrc
  2. 9
      setup.sh

13
.zshrc

@ -8,9 +8,11 @@ if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then
print -P "%F{160}▓▒░ The clone has failed.%F"
fi
source $HOME/.zinit/bin/zinit.zsh
source $HOME/dotfiles/.zshrc.origin
source $HOME/.vim/plugged/tapi-reg.vim/macros/vimreg.sh
source $HOME/.vim/plugged/sync-term-cwd.vim/macros/synctermcwd.sh
if [ -f $HOME/dotfiles/.zshrc.origin ];then
source $HOME/dotfiles/.zshrc.origin
fi
#source $HOME/.vim/plugged/tapi-reg.vim/macros/vimreg.sh
#source $HOME/.vim/plugged/sync-term-cwd.vim/macros/synctermcwd.sh
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
zinit light zsh-users/zsh-autosuggestions
@ -51,11 +53,13 @@ case $OSTYPE in
alias u="brew update"
alias ls="ls -aG"
alias ctags="`brew --prefix`/bin/ctags"
alias v="/usr/local/bin/vim"
;;
linux*)
eval `dircolors ~/.colorrc`
#eval `dircolors ~/.colorrc`
alias ls="ls -a --color=auto"
alias u="sudo pacman -Syu --noconfirm"
alias v="/usr/bin/vim"
;;
esac
@ -70,7 +74,6 @@ setopt HIST_REDUCE_BLANKS
setopt HIST_NO_STORE
alias ll="ls -alFLS"
alias v="/usr/local/bin/vim"
alias vim="v"
alias vs="v ~/.vimrc"
alias ts="v ~/.tmux.conf"

9
setup.sh

@ -13,5 +13,14 @@ case $OSTYPE in
fi
;;
linux*)
if ! which pmy > /dev/null 2>&1;then
go get -u github.com/relastle/pmy
fi
if ! which bat > /dev/null 2>&1;then
sudo pacman -Sy bat --noconfirm
fi
if ! which rg > /dev/null 2>&1;then
sudo pacman -Sy ripgrep --noconfirm
fi
;;
esac

Loading…
Cancel
Save