Skip to content

Instantly share code, notes, and snippets.

@BananaNeil
Created June 11, 2015 23:09
Show Gist options
  • Save BananaNeil/89a360745fdded87ff04 to your computer and use it in GitHub Desktop.
Save BananaNeil/89a360745fdded87ff04 to your computer and use it in GitHub Desktop.
.bash_profile
# RBENV
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
# ALLOW VIM TO USE CTRL+S
stty -ixon
# PROMPT
function color_my_prompt {
#local __git_branch="\`ruby -e \"print (%x{git branch 2> /dev/null}.grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1) ')\"\`"
local __git_branch_color="\[\033[31m\]"
local __user_and_host="\[\033[01;32m\]\u@\h"
local __cur_location="\[\033[01;34m\]\w"
local green_="\[\033[01;32m\]"
local blue_="\[\033[01;34m\]"
local cur_directory_="\W"
local git_branch_='`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`'
local last_color_="\[\033[00m\]"
local prompt_tail_="\[\033[35m\]$"
export PS1="$blue_$cur_directory_ $green_$git_branch_$prompt_tail_$last_color_ "
}
color_my_prompt
#ALIAS
alias alais='alias'
alias c="bundle exec rails c"
alias s="bundle exec rails s"
alias bs="bundle exec spring"
alias be="bundle exec"
alias ios_versions='/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/simctl list'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment