Skip to content

Instantly share code, notes, and snippets.

@poulter7
Created March 1, 2012 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save poulter7/1953078 to your computer and use it in GitHub Desktop.
Save poulter7/1953078 to your computer and use it in GitHub Desktop.
setup an environment quickly
#!/bin/bash
mkdir ~/poulter7setup
cd ~/poulter7setup
git clone https://github.com/poulter7/dotfiles
git clone https://github.com/poulter7/Vim-files
cd ~
ln -s ~/poulter7setup/Vim-files/.vimrc
ln -s ~/poulter7setup/dotfiles/.bash_tweaks
ln -s ~/poulter7setup/dotfiles/.bash_aliases
echo '
# Alias definitions
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi' >> ~/.bash_profile
echo '
# Terminal tweaks
# These go alongside this file, and the bash_aliases
if [ -f ~/.bash_tweaks ]; then
. ~/.bash_tweaks
fi' >> ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment