Skip to content

Instantly share code, notes, and snippets.

@schickling
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save schickling/733bd20b1b276e408fbd to your computer and use it in GitHub Desktop.
Save schickling/733bd20b1b276e408fbd to your computer and use it in GitHub Desktop.
One command working enviornment setup

This script automatically sets up my vim environment on any machine. For example in a docker container or an EC2 instance.

Dependencies

  • wget
  • vim
  • git

Usage

$ wget -O t http://goo.gl/ng6Nys && bash t; rm t; . ~/.bashrc
#! /bin/bash
# configure git
git config --global user.name "Johannes Schickling"
git config --global user.email "schickling.j@gmail.com"
git config --global push.default simple
# setup bashrc
echo 'export DOTFILES=$HOME/.dotfiles' >> ~/.bashrc
echo 'source $DOTFILES/aliases/unix.sh' >> ~/.bashrc
echo 'source $DOTFILES/aliases/git.sh' >> ~/.bashrc
echo 'source ~/.bashrc' >> ~/.bash_profile
source ~/.bashrc
# setup dotfiles
git clone https://github.com/schickling/dotfiles.git ~/.dotfiles
mkdir -p ~/.vim/{backups,swaps}
ln -s ~/.dotfiles/vim/colors ~/.vim/colors
ln -s ~/.dotfiles/vimrc ~/.vimrc
ln -s ~/.dotfiles/tmux.conf ~/.tmux.conf
# setup vundle
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment