Instantly share code, notes, and snippets.

What would you like to do?
Web Dev Environment Setup

Web Dev Environment Setup

Note: This was for my Ubuntu setup - need to update this for my macbook setup

Install Git

  • sudo apt-get update
  • sudo apt-get install git

Install Vim

  • sudo apt-get install vim

Create aliases file

  • vim .bash_aliases

Create Global Git Ignore file

  • git config --global core.excludesfile ~/.gitignore_global
  • touch .gitignore_global
  • vim .gitignore_global

Create git config

  • git config --global "Juan Fernandes"
  • git config --global
  • vim .gitconfig and add config
name = Juan Fernandes
email =
ui = 1
[color "branch"]
current = green bold
local = green
remote = cyan
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = green
changed = magenta
untracked = red
excludesfile = ~/.gitignore_global
helper = cache
autocorrect = 50
default = simple
# GIT Aliases
alias g='git'
alias gi="git init && gac 'Initial commit'"
alias gs='git status'
alias ga='git add -A'
alias gm='git commit -m'
alias gac="git add . && git commit -m"
alias gd='git diff --color-words'
alias gl='git log'
alias glg='git log -p'
alias glog='git log --graph --oneline --all --decorate'
alias gb='git branch'
alias gbd='git branch -D'
alias push='git push'
alias gdw='git diff -w'
alias gc='git checkout'
alias gcb="git checkout -b"
alias gc-='git checkout -'
alias gra='git remote add'
alias grr='git remote rm'
alias grv='git remote -v'
alias gcl='git clone'
alias pull='git pull'
alias gmer='git merge --no-ff'
alias gwho='git shortlog -s --'
alias gr='git reset'
# System Aliases
alias x='exit'
alias ll='ls -a -l'
## Sublime Text Project Files
## Folders and files with underscore
## OS junk files
## Generic files to ignore
## Folders to ignore
Install Brew
/usr/bin/ruby -e "$(curl -fsSL"
Install Fish
brew install fish
Install Oh My Fish
curl -L | fish
[comfig default shell]
sudo vim /etc/shells
chsh -s /usr/local/bin/fish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment