Last active
February 16, 2017 01:48
-
-
Save devsdmf/84449cdd88bd62b1d874 to your computer and use it in GitHub Desktop.
My OSX's bash_profile
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
[[ -s ~/.bashrc ]] && source ~/.bashrc | |
# exports | |
export CLICOLOR=1 | |
export LSCOLORS=cxexDxgxBxegedabagacad | |
export PATH="/usr/local/sbin:$PATH" | |
# aliases | |
alias ll='ls -lahGF' | |
alias edit='nano' | |
alias cedit='subl' | |
alias gitlog='git log --decorate=short --full-diff --cherry' | |
alias gittree='git log --decorate=short --full-diff --cherry --graph --oneline' | |
alias memcached.start='launchctl load ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist' | |
alias memcached.stop='launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist' | |
alias redis.start='launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist' | |
alias redis.stop='launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.redis.plist' | |
alias mysql.start='launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist' | |
alias mysql.stop='launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist' | |
alias composer='php -c /usr/local/etc/php/5.6/php-composer.ini /usr/local/bin/composer' | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \(\1\)/' | |
} | |
function prompt { | |
local BLACK="\[\033[0;30m\]" | |
local BLACKBOLD="\[\033[1;30m\]" | |
local RED="\[\033[0;31m\]" | |
local REDBOLD="\[\033[1;31m\]" | |
local GREEN="\[\033[0;32m\]" | |
local GREENBOLD="\[\033[1;32m\]" | |
local YELLOW="\[\033[0;33m\]" | |
local YELLOWBOLD="\[\033[1;33m\]" | |
local BLUE="\[\033[0;34m\]" | |
local BLUEBOLD="\[\033[1;34m\]" | |
local PURPLE="\[\033[0;35m\]" | |
local PURPLEBOLD="\[\033[1;35m\]" | |
local CYAN="\[\033[0;36m\]" | |
local CYANBOLD="\[\033[1;36m\]" | |
local WHITE="\[\033[0;0m\]" | |
local WHITEBOLD="\[\033[1;0m\]" | |
local RESETCOLOR="\[\e[00m\]" | |
#export PS1="$WHITE|=> $CYAN\u$WHITE [$GREEN\w$WHITE]$PURPLE\$(parse_git_branch)$WHITE $ " | |
#export PS1="$PURPLE> $BLUE\u $RESETCOLOR[$GREEN\w$RESETCOLOR]$RED\$(parse_git_branch)$RESETCOLOR \n" | |
export PS1="$PURPLE> $RESETCOLOR[$GREEN\w$RESETCOLOR]$RED\$(parse_git_branch)$RESETCOLOR \n" | |
} | |
prompt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment