Skip to content

Instantly share code, notes, and snippets.

@czerasz
Created February 1, 2012 12:19
Show Gist options
  • Save czerasz/1716793 to your computer and use it in GitHub Desktop.
Save czerasz/1716793 to your computer and use it in GitHub Desktop.
My .profile
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# Set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
## Aliases
# git shortcuts
# source: http://gitimmersion.com/lab_11.html
alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gd='git diff'
alias go='git checkout '
alias gk='gitk --all&'
alias gx='gitx --all'
alias got='git '
alias get='git '
# Displays all dot files
alias l.='ls -d .* --color=auto'
# Improved ls
alias ll='ls -hal –color=auto'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment