Created
November 30, 2012 16:28
-
-
Save superacidjax/4176804 to your computer and use it in GitHub Desktop.
Bash!
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
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 | |
# Store 10,000 history entries | |
export HISTSIZE=10000 | |
# Don't store duplicates | |
export HISTCONTROL=erasedups | |
# Append to history file | |
shopt -s histappend | |
VISUAL=vim | |
EDITOR="$VISUAL" | |
LESS="FRX" | |
RI="--format ansi -T" | |
PSQL_EDITOR='vim -c"setf sql"' | |
CLICOLOR=1 | |
LSCOLORS=gxgxcxdxbxegedabagacad | |
alias h='history' | |
function branch | |
{ | |
git status 2> /dev/null | ruby ~/development/scripts/branch.rb | |
} | |
export VISUAL EDITOR LESS RI PSQL_EDITOR CLICOLOR LSCOLORS | |
bind 'set bind-tty-special-chars off' | |
bind '"\ep": history-search-backward' | |
bind '"\en": history-search-forward' | |
bind '"\C-w": backward-kill-word' | |
export HISTIGNORE="%*" | |
bind '"\C-q": "%-\n"' | |
[ -z "$PS1" ] || stty -ixon | |
[ -z "$PS1" ] || export PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$(git_prompt_info '(%s)')$ " | |
[ ! -f "$HOME/.bashrc.local" ] || . "$HOME/.bashrc.local" | |
PS1="$txtylw\w$txtgrn\$(branch)$txtwht ∴$txtrst " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment