Created
October 17, 2014 06:35
-
-
Save tedpennings/a1f670e1e618f3e7ce2f to your computer and use it in GitHub Desktop.
My ~/.profile, minus work-related aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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