
# -------------------------------------------------------------------------
# Aliases
# -------------------------------------------------------------------------

# Navigation.
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias -- -="cd -"

# Shortcuts.
alias dev="cd ~/dev"

# History.
alias h="history"
alias hist="history 25"

# Git.
alias ga="git add"
alias gc="git commit"
alias gd="git diff"
alias gl="git log"
alias gs="git status"

# Determine which variety of `ls` we're using.
if is_osx; then
    colorflag="-G"
else
    colorflag="--color"
fi

# Add colour support and variants to `ls`.
alias ls="ls ${colorflag}"
alias la="ls -a ${colorflag}"
alias ll="ls -al ${colorflag}"

# Show/hide files in OSX Finder.
alias show="defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder /System/Library/CoreServices/Finder.app"
alias hide="defaults write com.apple.finder AppleShowAllFiles FALSE; killall Finder /System/Library/CoreServices/Finder.app"

# Recursively delete `.DS_Store` files.
alias cleanup="find . -type f -name '.DS_Store' -delete"

# Reload the shell.
alias reload="exec $SHELL -l"


# -------------------------------------------------------------------------
# Aliases
# -------------------------------------------------------------------------

# Navigation.
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias -- -="cd -"

# Shortcuts.
alias dev="cd ~/dev"

# History.
alias h="history"
alias hist="history 25"

# Git.
alias ga="git add"
alias gc="git commit -m"
alias gd="git diff"
alias gl="git log"
alias gs="git status"

# Determine which variety of `ls` we're using.
if is_osx; then
    colorflag="-G"
else
    colorflag="--color"
fi

# Add colour support and variants to `ls`.
alias ls="ls ${colorflag}"
alias la="ls -a ${colorflag}"
alias ll="ls -al ${colorflag}"

# Show/hide files in OSX Finder.
alias show="defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder /System/Library/CoreServices/Finder.app"
alias hide="defaults write com.apple.finder AppleShowAllFiles FALSE; killall Finder /System/Library/CoreServices/Finder.app"

# Recursively delete `.DS_Store` files.
alias cleanup="find . -type f -name '.DS_Store' -delete"

# Reload the shell.
alias reload="exec $SHELL -l"

Add -m flag to gc alias
Add -m flag to gc alias
