Skip to content

Instantly share code, notes, and snippets.

@jpwco
Forked from KCreate/setup.sh
Created November 21, 2016 17:11
Show Gist options
  • Save jpwco/b4ee9fa17a100c4e466ec16ec5c7f07c to your computer and use it in GitHub Desktop.
Save jpwco/b4ee9fa17a100c4e466ec16ec5c7f07c to your computer and use it in GitHub Desktop.
Personal Ubuntu Setup Script
# Install git
sudo apt-get install git
sudo mkdir ~/github/
# Uninstall all previous copies of vim
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common
sudo apt-get build-dep vim-gnome
sudo apt-get install python-dev libncurses5-dev
sudo rm -rf /usr/local/share/vim
sudo rm /usr/bin/vim
# Install vim
cd ~/github/
sudo git clone https://github.com/vim/vim/
cd vim/src
./configure \
--with-features=huge \
--enable-largefile \
--enable-pythoninterp \
--with-python-config-dir=/usr/lib/python2.7/config \
--enable-gui=auto
sudo make
sudo make install
sudo mv ./vim /usr/bin/
# Setup Vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# Install NodeJS 6
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
# Install some global packages via npm
sudo npm install -g nodemon
sudo npm install -g gulp
# Install tmux
sudo apt-get install tmux
# Download configuration files for vim, tmux and bash
sudo scp [email protected]:/root/.vimrc ~/
sudo scp [email protected]:/root/.tmux.conf ~/
sudo scp [email protected]:/root/.bashrc ~/
# Download the customized onedark theme
sudo scp [email protected]:/root/.vim/colors/onedark.vim ~/.vim/colors/
# Install all vim plugins
vim +PluginInstall +qall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment