Skip to content

Instantly share code, notes, and snippets.

@erik-jenkins
Created June 13, 2017 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erik-jenkins/3f7eeb4febebbb6e17ac4254f6b220d7 to your computer and use it in GitHub Desktop.
Save erik-jenkins/3f7eeb4febebbb6e17ac4254f6b220d7 to your computer and use it in GitHub Desktop.
# 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 eajenkins@quark.ecs.umass.edu"
# 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