Get Selected Finder Items
Run Shell Script
if [[ -d "$1" ]]; then
open -a Terminal "$1"
elif [[ -f "$1" ]]; then
open -a Terminal "`dirname "$1"`"
fi
export HISTCONTROL=erasedups
export HISTSIZE=10000
shopt -s histappend
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
PS1='\[\e[1;34m\]\D{%b%d %T} `pwd`>\[\e[0m\] '
alias g='grep -r --color=yes -n'
gp()
{
git add . && git commit -a -m "$1" && git push
}
gc()
{
git add . && git commit -a -m "$1"
}
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"