Skip to content

Instantly share code, notes, and snippets.

@juanfernandes
Last active November 10, 2022 15:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanfernandes/7e13fa0c81253ae46f8d to your computer and use it in GitHub Desktop.
Save juanfernandes/7e13fa0c81253ae46f8d to your computer and use it in GitHub Desktop.
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
editor = codium --wait
[diff]
tool = "Sublime Merge"
[difftool "smerge"]
cmd = smerge --wait --diff $LOCAL $REMOTE
[merge]
tool = "Sublime Merge"
[mergetool "Sublime Merge"]
cmd = smerge mergetool \"$BASE\" \"$REMOTE\" \"$LOCAL\" -o \"$MERGED\"
[credential]
helper = cache
[help]
autocorrect = 50
[push]
default = simple
autoSetupRemote = true
[commit]
verbose = true
gpgsign = true
[rebase]
autosquash = true
[gpg]
program = gpg
[init]
defaultBranch = main
templateDir = /Users/juanfernandes/.git-template
[alias]
new = !git init && git symbolic-ref HEAD refs/heads/main
# 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 fetch && git merge --ff-only'
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