Skip to content

Instantly share code, notes, and snippets.

@gcpantazis
Created October 17, 2012 18:49
Show Gist options
  • Save gcpantazis/3907345 to your computer and use it in GitHub Desktop.
Save gcpantazis/3907345 to your computer and use it in GitHub Desktop.
Bash Profile
# Colors
BLACK="\[\e[0;30m\]"
BLUE="\[\e[1;34m\]"
GREEN="\[\e[0;32m\]"
LIME="\[\e[1;32m\]"
CYAN="\[\e[0;36m\]"
ORANGE="\[\e[1;31m\]"
RED="\[\e[0;31m\]"
PURPLE="\[\e[0;35m\]"
BROWN="\[\e[0;33m\]"
WHITE="\[\e[1;37m\]"
ENDCOLOR="\[\e[m\]"
# write a function to compute the current git branch
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \(\1\)/'
}
#export PS1="[ \@ | \h:$WHITE\w$ENDCOLOR] $BLUE\u$ENDCOLOR$ "
#export PS1="[ $WHITE\w$ENDCOLOR ] $BLUE\u$ENDCOLOR$ "
#export PS1="$RED($ORANGE\w$RED) $WHITE\u$RED> $ENDCOLOR"
#PS1="$GREEN($LIME\w$GREEN)$RED\$(parse_rvm_status)$PURPLE\$(parse_git_branch) $WHITE\u$GREEN> $ENDCOLOR"
PS1="$GREEN($LIME\w$GREEN)$PURPLE\$(parse_git_branch) $WHITE\u$GREEN> $ENDCOLOR"
alias ls="ls -G"
alias ll="ls -lh"
alias l="ll"
alias lll="ll"
alias la="ll -a"
alias lla="ll -a"
alias lsa="ls -a"
alias lt='ll -t'
alias lrt='ll -rt'
alias lart="ll -lart"
alias lsd="ls -d */"
alias lld="ll -d */"
alias emcc="~/emscripten/emcc"
alias emconfigure="~/emscripten/emconfigure"
alias emmake="~/emscripten/emmake"
alias editprofile="vi ~/.bash_profile"
alias edithosts="sudo vi /private/etc/hosts"
alias phplog="tail -f /Applications/MAMP/logs/php_error.log"
# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
read -r -d '' VAR << 'EOF'
`
(
( )\ ) (
)\ (()/( ( )\
(((_) /(_)) _ )((_)
)\___ (_)) _| |_((_)_
((/ __|| _ \|_ _|| _ )
| (__ | _/ |_| | _ \
\___||_| |___/
`
EOF
echo "$VAR"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment