Note: This was for my Ubuntu setup - need to update this for my macbook setup
Last active
November 10, 2022 15:06
-
-
Save juanfernandes/7e13fa0c81253ae46f8d to your computer and use it in GitHub Desktop.
Web Dev Environment Setup
- sudo apt-get update
- sudo apt-get install git
- sudo apt-get install vim
- vim .bash_aliases
- git config --global core.excludesfile ~/.gitignore_global
- touch .gitignore_global
- vim .gitignore_global
- git config --global user.name "Juan Fernandes"
- git config --global user.email [email protected]
- vim .gitconfig and add config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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