-
-
Save thomaswhyyou/8906386 to your computer and use it in GitHub Desktop.
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
# https://wiki.archlinux.org/index.php/Color_Bash_Prompt | |
# https://github.com/altercation/solarized/tree/master/iterm2-colors-solarized | |
# http://geoff.greer.fm/lscolors/ | |
# Colors | |
# ------------- | |
txtblk='\[\e[0;30m\]' # Black | |
txtred='\[\e[0;31m\]' # Red | |
txtgrn='\[\e[0;32m\]' # Green | |
txtylw='\[\e[0;33m\]' # Yellow | |
txtblu='\[\e[0;34m\]' # Blue | |
txtpur='\[\e[0;35m\]' # Purple | |
txtcyn='\[\e[0;36m\]' # Cyan | |
txtwht='\[\e[0;37m\]' # White | |
txtrst='\[\e[0m\]' # Text Reset | |
# Rename Tabs | |
# ---------------- | |
function tabname { | |
printf "\e]1;$1\a" | |
} | |
# Rename Windows | |
# -------------- | |
function winname { | |
printf "\e]2;$1\a" | |
} | |
#export PATH="/usr/local/bin:$PATH" | |
PATH=/Applications/Postgres.app/Contents/MacOS/bin:/usr/local/git/bin:/usr/local/bin:$HOME/.rvm/bin:$HOME/Documents/scripts:$PATH | |
#PATH=$HOME/.rvm/bin:$HOME/Documents/scripts:$PATH | |
HISTFILESIZE=9000 | |
# Add colors to LS | |
# ---------------- | |
export CLICOLOR=1 | |
export LSCOLORS=fxexcxdxbxegedabagacad | |
# This is the 20th century after all, use unicode | |
# export LC_CTYPE=en_US.UTF-8 | |
# export TERM=xterm-color | |
# Make sublime our editor of choice | |
# --------------------------------- | |
export EDITOR="subl -w" | |
# Sources | |
# ---------------- | |
. ~/.rvm/scripts/rvm | |
. ~/.bash_extras # Env Variables | |
# ALIASES | |
if [ -f ~/.bash_aliases ]; then | |
. ~/.bash_aliases | |
fi | |
# Load RVM into a shell session *as a function* | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" | |
# Tab improvements | |
# ---------------- | |
bind 'set completion-ignore-case on' | |
bind 'set show-all-if-ambiguous on' | |
bind 'TAB: menu-complete' | |
# Start Screen | |
# ---------------- | |
echo "----------------------------------------------------------------" | |
echo "$(git --version)" | |
echo "$(ruby -v)" | |
echo "$(rails -v)" | |
echo "----------------------------------------------------------------" | |
# Git | |
# https://help.github.com/articles/ignoring-files | |
# ---------------- | |
function branch { | |
git status 2> /dev/null | ruby ~/Documents/scripts/branch.rb | |
} | |
################ | |
# prompt stuff # | |
################ | |
# # Prompt | |
# # ~/example/sites ∴ | |
PS1="$txtylw\w$txtgrn\$(branch)$txtwht ∴ " | |
# PS1="[\[\033[32m\]\w]\[\033[0m\]\n\[\033[1;36m\]\u\[\033[1;33m\]-> \[\033[0m\]" # black, green, cyan, yellow, w/black output w/full path (2-tier) | |
# # Fancy prompt | |
# PS1="$txtylw\w$txtgrn\$(branch)$txtwht $txtrst " | |
# if [ -f "$HOME/.bash_ps" ]; then | |
# . "$HOME/.bash_ps" | |
# fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment