Last active
January 20, 2017 18:06
-
-
Save aqualungdesign/fbd2d90d9092040ce841 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
# Push and pop directories on directory stack | |
alias pu='pushd' | |
alias po='popd' | |
alias q='exit' | |
alias subl='open -a "Atom"' | |
alias saf='open -a "Safari"' | |
alias psd='open -b "com.adobe.Photoshop"' | |
alias mail='open -a "Gmail"' | |
alias text='open -a "TextEdit"' | |
# ------------------------------------------------------------------- | |
# Git aliases | |
# ------------------------------------------------------------------- | |
alias ga='git add --all' | |
alias gp='git push' | |
alias gl='git log' | |
alias gs='git status' | |
alias gd='git diff' | |
alias gm='git commit -m' | |
alias gma='git commit -am' | |
alias gb='git branch' | |
alias gc='git checkout' | |
alias gra='git remote add' | |
alias grr='git remote rm' | |
alias gpu='git pull' | |
alias gcl='git clone' | |
alias gta='git tag -a -m' | |
alias gf='git reflog' | |
# leverage an alias from the ~/.gitconfig | |
alias gh='git hist' | |
alias glg1='git lg1' | |
alias glg2='git lg2' | |
alias glg='git lg' | |
# Basic directory operations | |
alias ...='cd ../..' | |
alias -- -='cd -' | |
# Super user | |
alias _='sudo' | |
alias please='sudo' | |
#alias g='grep -in' | |
# Show history | |
if [ "$HIST_STAMPS" = "mm/dd/yyyy" ] | |
then | |
alias history='fc -fl 1' | |
elif [ "$HIST_STAMPS" = "dd.mm.yyyy" ] | |
then | |
alias history='fc -El 1' | |
elif [ "$HIST_STAMPS" = "yyyy-mm-dd" ] | |
then | |
alias history='fc -il 1' | |
else | |
alias history='fc -l 1' | |
fi | |
# List direcory contents | |
alias lsa='ls -lah' | |
alias l='ls -lah' | |
alias ll='ls -lh' | |
alias la='ls -lAh' | |
alias sl=ls # often screw this up | |
alias afind='ack-grep -il' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment