Skip to content

Instantly share code, notes, and snippets.

Embed
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 user.name "Juan Fernandes"
  • git config --global user.email fernandes.juan@gmail.com
  • vim .gitconfig and add config
[user]
name = Juan Fernandes
email =
[color]
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
[core]
excludesfile = ~/.gitignore_global
[credential]
helper = cache
[help]
autocorrect = 50
[push]
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'
# Editors #
###########
*.sublime-project
*.sublime-workspace
.vscode/*
# OS files #
############
._*
.DS_Store
.DS_Store?
.Spotlight-V100
.Trashes
[Tt]humbs.db
Thumbs.db
ehthumbs.db
Desktop.ini
# Generic files #
#################
.*
~*
*.lock
*.swp
*.out
*.swf
*.DAV
*.orig
*.db
*.missing
*.log
*.map
# Folders #
###########
__*
tmp/*
node_modules/*
.sass-cache/*
/bower_components
/_site
/public
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
############
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Logs and databases #
######################
*.log
*.sql
*.sqlite
Install Brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install Fish
brew install fish
Install Oh My Fish
curl -L https://get.oh-my.fish | 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
You can’t perform that action at this time.