Skip to content

Instantly share code, notes, and snippets.

@SebastianCarroll
Last active March 22, 2017 05:49
Show Gist options
  • Save SebastianCarroll/3c1d71fe6cf57d83ad4785eed1e2c2dc to your computer and use it in GitHub Desktop.
Save SebastianCarroll/3c1d71fe6cf57d83ad4785eed1e2c2dc to your computer and use it in GitHub Desktop.
git config
# Install Git
# sudo yum -y install git
# Git
git config --global user.name "Sebastian Carroll"
git config --global user.email "[email protected]"
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.diffs 'diff --staged'
git config --global push.default simple
git config --global alias.lg 'log --oneline --graph --decorate'
git config --global alias.mbr 'merge --no-ff --edit'
git config --global core.excludesfile '~/.gitignore'
echo "Dont forget to add a global .gitignore file"
# Vim Ruby
# Install Pathogen here
cat <<EOT >> ~/.vimrc
execute pathogen#infect()
syntax on
filetype plugin indent on
EOT
git clone git://github.com/vim-ruby/vim-ruby.git ~/.vim/bundle/vim-ruby
mkdir ~/.vim/autoload # Think this shouldn't be necessary?
# This line creates all the curl headers in the pathogen.vim file too...
curl -i -LSso ~/.vim/autoload/pathogen.vim https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim
# generate ssh keys to link with github
# ssh-keygen -b 4096
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment