Skip to content

Instantly share code, notes, and snippets.

@tedpennings
Created October 17, 2014 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tedpennings/a1f670e1e618f3e7ce2f to your computer and use it in GitHub Desktop.
Save tedpennings/a1f670e1e618f3e7ce2f to your computer and use it in GitHub Desktop.
My ~/.profile, minus work-related aliases
export PATH=/usr/local/bin:$PATH:~/bin
eval "$(rbenv init -)"
export GREP_OPTIONS="--color=auto"
BREWDIR=$(brew --prefix)
if [ -f $BREWDIR/etc/bash_completion ]; then
source $BREWDIR/etc/bash_completion
fi
function sailboat {
echo "💨 ⛵ ️"
}
function blinkwhenlate {
leave=1710
gtfo=1745
t=$(date +%k%M | sed -e "s/^0//")
if (( $t > $gtfo )); then
format="\e[1;5;37;41m %s GO HOME \e[m"
elif (( $t > $leave )); then
format="\e[1;31;47m %s \e[m"
else
format="\e[34m%s\e[m"
fi
printf "$format" $(date +%-l:%M)
}
alias ls='ls -GFh'
export CLICOLOR=1
GIT_PS1_SHOWDIRTYSTATE=true
GIT_PS1_SHOWUNTRACKEDFILES=true
GIT_PS1_SHOWUPSTREAM=auto
GIT_PS1_SHOWCOLORHINTS=true
GIT_PS1_DESCRIBE_STYLE=branch
export PROMPT_COMMAND='__git_ps1 "\n\$(sailboat) \$(blinkwhenlate) \e[0;33m\w\e[m" "\n\$ "'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment