mirror of https://github.com/einverne/dotfiles.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.5 KiB
45 lines
1.5 KiB
9 years ago
|
#!/bin/bash
|
||
|
VIMDIR=${1:-$HOME}
|
||
|
|
||
7 years ago
|
# install ctags to solve "Exuberant ctags not found in PATH" error
|
||
7 years ago
|
sudo apt-get install -y git zsh zsh-antigen vim vim-gtk tmux
|
||
7 years ago
|
chsh -s $(which zsh)
|
||
|
sudo apt-get install -y exuberant-ctags
|
||
7 years ago
|
sudo apt-get install -y htop tree zip unzip wget nethogs
|
||
7 years ago
|
|
||
|
|
||
9 years ago
|
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"
|
||
|
echo -en "Do you want to continue?[y/n]"
|
||
|
read -n 1 use_vim_configs
|
||
|
if [ "$use_vim_configs" == "Y" ] || [ "$use_vim_configs" == "y" ]; then
|
||
9 years ago
|
if [ -d "$VIMDIR/.vim" ]; then
|
||
|
mv $VIMDIR/.vim $VIMDIR/.vim.old
|
||
|
echo "origin .vim directory has been moved to .vim.old"
|
||
|
fi
|
||
|
if [ -f "$VIMDIR/.vimrc" ]; then
|
||
|
mv $VIMDIR/.vimrc $VIMDIR/.vimrc.old
|
||
|
echo "origin .vimrc has been moved to .vimrc.old"
|
||
|
fi
|
||
7 years ago
|
ln -rsf $PWD/.vim $VIMDIR/.vim 2> /dev/null
|
||
|
ln -rsf $PWD/.vimrc $VIMDIR/.vimrc 2> /dev/null
|
||
7 years ago
|
|
||
7 years ago
|
if [ -f "$VIMDIR/.tmux.conf" ]; then
|
||
|
mv $VIMDIR/.tmux.conf $VIMDIR/.tmux.conf.old
|
||
|
echo "origin .tmux.conf has been moved to .tmux.conf.old"
|
||
|
fi
|
||
7 years ago
|
ln -rsf $PWD/tmux/.tmux.conf $VIMDIR/.tmux.conf 2> /dev/null
|
||
|
ln -rsf $PWD/tmux/.tmux.conf.local $VIMDIR/.tmux.conf.local 2> /dev/null
|
||
7 years ago
|
|
||
|
# link zshrc
|
||
|
ln -rsf $PWD/.zshrc $VIMDIR/.zshrc 2> /dev/null
|
||
5 years ago
|
#curl -L git.io/antigen > $VIMDIR/antigen.zsh
|
||
|
git clone [email protected]:zsh-users/antigen.git $HOME/antigen
|
||
9 years ago
|
fi
|
||
9 years ago
|
|
||
4 years ago
|
# install asdf
|
||
|
git clone https://github.com/asdf-vm/asdf.git ~/.asdf
|
||
|
|
||
9 years ago
|
git submodule init && git submodule update
|
||
9 years ago
|
|