Last active
March 1, 2017 09:03
-
-
Save optyler/0ed6bbc0e58bba9cad82654db401fd6c to your computer and use it in GitHub Desktop.
osx .bash_profile
This file contains hidden or 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
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
# Git tweeks | |
git_dir_shell=$(brew --prefix)/etc/bash_completion.d | |
if [ -f $git_dir_shell/git-prompt.sh -a -f $git_dir_shell/git-completion.bash -a -f $git_dir_shell/git-flow-completion.bash ]; then | |
source $git_dir_shell/git-prompt.sh | |
source $git_dir_shell/git-completion.bash | |
source $git_dir_shell/git-flow-completion.bash | |
export GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWSTASHSTATE=1 GIT_PS1_SHOWUNTRACKEDFILES=1 | |
export GIT_PS1_SHOWUPSTREAM=verbose GIT_PS1_DESCRIBE_STYLE=branch GIT_PS1_SHOWCOLORHINTS=1 | |
export GIT_PS1_HIDE_IF_PWD_IGNORED=1 | |
export PS1="\[\033[38;5;6m\]\u\[$(tput sgr0)\]\[\033[38;5;3m\]@\[$(tput sgr0)\]\[\033[38;5;6m\]\h\[$(tput sgr0)\]\[\033[38;5;3m\]:\[$(tput sgr0)\]\[\033[38;5;12m\]\W$(__git_ps1 " (%s)")\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;199m\]\\$\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]" | |
fi | |
# Colorful prompt for Bash! | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
export PS1="\[\033[38;5;6m\]\u\[$(tput sgr0)\]\[\033[38;5;3m\]@\[$(tput sgr0)\]\[\033[38;5;6m\]\h\[$(tput sgr0)\]\[\033[38;5;3m\]:\[$(tput sgr0)\]\[\033[38;5;12m\]\W\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;199m\]\\$\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]" | |
# Bash aliases | |
alias ls='ls -GFh' | |
alias ll='ls -l' | |
alias grep='grep --color' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment