Last active
October 25, 2019 17:18
-
-
Save robquinn/e880181606ef1891443d6e76b9b53b74 to your computer and use it in GitHub Desktop.
new-vm.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/bin/bash | |
# misc | |
sudo apt install zsh fonts-powerline | |
# change to home directory | |
cd $HOME | |
# oh-my-zsh | |
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
# zsh-completions | |
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions | |
# zsh-autosuggestions | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
# zsh-syntax-highighting | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc | |
source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
# vim plug | |
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | |
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
# Vundle | |
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
# remove previous zsh & vim config | |
rm -rf $HOME/.zshrc | |
rm -rf $HOME/.vimrc | |
# copy zsh & vim config | |
curl https://gist.githubusercontent.com/robitwtms/90aaa1e97e54e8f771d8de4d90a9393a/raw/cb2dec1ca5ebba9e103c81b35aec51cd7260c87c/.vimrc > $HOME/.vimrc | |
curl https://gist.githubusercontent.com/robitwtms/4dbb9c33eceaea0a7a7904d4007f9fba/raw/b3ae16321616161cac6782a98510888cd2eb6a76/.zshrc > $HOME/.zshrc | |
# reload zsh config | |
source $HOME/.zshrc | |
# install vundle plugins | |
vim +PluginInstall +qall | |
vim +PlugInstall +qall | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment