Browse Source

Update antigen

Signed-off-by: Ein Verne <[email protected]>
pull/4/head
Ein Verne 5 years ago
parent
commit
8e69abbb9e
  1. 12
      .zshrc
  2. 2
      init_install.sh
  3. 13
      init_server.sh
  4. 10
      install.sh

12
.zshrc

@ -92,16 +92,11 @@ fi
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
pip
tmux
tmuxinator
)
#source $ZSH/oh-my-zsh.sh
source $HOME/antigen.zsh
# you need to git clone [email protected]:zsh-users/antigen.git to $HOME
source $HOME/antigen/antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
@ -109,6 +104,7 @@ antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle git
antigen bundle git-extras
antigen bundle mvn
antigen bundle tig
antigen bundle heroku
antigen bundle pip
@ -116,6 +112,8 @@ antigen bundle lein
antigen bundle command-not-found
antigen bundle tmux
antigen bundle tmuxinator
antigen bundle docker
antigen bundle docker-compose
# Syntax highlighting bundle.
antigen bundle zsh-users/zsh-syntax-highlighting

2
init_install.sh

@ -32,3 +32,5 @@ sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python-openssl
# zeal
sudo add-apt-repository -y ppa:zeal-developers/ppa

13
init_server.sh

@ -0,0 +1,13 @@
#!/bin/bash -
set -o nounset # Treat unset variables as an error
VIM_SERVER="https://raw.githubusercontent.com/wklken/vim-for-server/master/vimrc"
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
echo "Are you sure to install vim for server"
read -n 1 is_server
if [ "$is_server" == "Y" ] || [ "$is_server" == "y" ]; then
curl $VIM_SERVER > $HOME/.vimrc
exit
fi

10
install.sh

@ -7,13 +7,6 @@ chsh -s $(which zsh)
sudo apt-get install -y exuberant-ctags
sudo apt-get install -y htop tree zip unzip wget nethogs
VIM_SERVER="https://raw.githubusercontent.com/wklken/vim-for-server/master/vimrc"
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
read -n 1 is_server
if [ "$is_server" == "Y" ] || [ "$is_server" == "y" ]; then
curl $VIM_SERVER > $HOME/.vimrc
exit
fi
echo "start install, all of your old .vimrc and .vim will be overwritten."
echo "all your old vim settings will be mv to .vimrc.old & .vim.old"
@ -40,7 +33,8 @@ if [ "$use_vim_configs" == "Y" ] || [ "$use_vim_configs" == "y" ]; then
# link zshrc
ln -rsf $PWD/.zshrc $VIMDIR/.zshrc 2> /dev/null
curl -L git.io/antigen > $VIMDIR/antigen.zsh
#curl -L git.io/antigen > $VIMDIR/antigen.zsh
git clone [email protected]:zsh-users/antigen.git $HOME/antigen
fi
git submodule init && git submodule update

Loading…
Cancel
Save