Skip to content

Instantly share code, notes, and snippets.

View rydurham's full-sized avatar

Ryan C. Durham rydurham

View GitHub Profile
@rydurham
rydurham / gist:7149861
Created October 25, 2013 05:37
.bash_aliases 10/24/13
# Some useful Aliases
alias cls=clear
alias composer='/usr/local/bin/composer.phar'
# Add Git Branch Info
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
@rydurham
rydurham / .bashrc
Created October 25, 2013 05:35
.bashrc 10/24/13
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth