Created
June 13, 2017 18:10
-
-
Save erik-jenkins/3f7eeb4febebbb6e17ac4254f6b220d7 to your computer and use it in GitHub Desktop.
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
# bash aliases | |
alias l='ls -lah' | |
alias lg='ls -lah | grep -i $1' | |
alias c='clear' | |
alias reload='source ~/.bashrc' | |
# git aliases | |
alias gs='git status' | |
alias gcm='git commit -m' | |
alias gl='git log' | |
alias glo='git log --oneline' | |
alias ga='git add' | |
alias gaa='git add -A' | |
alias gd='git diff' | |
alias gco='git checkout ' | |
alias gcob='git checkout -b' | |
alias gb='git branch' | |
alias gpsho='git push origin' | |
alias gpllo='git pull origin' | |
alias gpshom='git push origin master' | |
alias gpllom='git pull origin master' | |
# ssh aliases | |
alias sshquark="ssh [email protected]" | |
# mac specific aliases | |
if [[ "$OSTYPE" == "darwin"* ]]; then | |
alias e='emacs-25.1' | |
alias einit='emacs ~/.emacs.d/init.el' | |
alias cwd='pwd | pbcopy' | |
alias cdcb='cd $(pbpaste)' | |
# finder aliases | |
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app' | |
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment