Please bear with us as we work to restore functionality to dotfiles.org.
foca
/.bashrc
Nice colored prompt, include aliases and functions (see my .bash_aliases & .bash_functions :)), vi-mode on the command line, cache (and complete) cheat sheets, and multiple `complete` tricks from a script on the interweb (see the link in the comment). Some ideas and functions were taken from other people at dotfiles.org
#!/bin/sh
# some system variables
export PATH=$HOME/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/mysql/bin:$PATH
export EDITOR=/Applications/MacVim.app/Contents/MacOS/Vim
export VISUAL=$EDITOR
export SVN_EDITOR=$EDITOR
export GIT_EDITOR=$EDITOR
export PAGER=page
export CDPATH=.:~:~/projects
export HISTIGNORE="&:ls:[bf]g:exit:[cxh]:a\ "
# damn variable isn't exported by default'
export COLUMNS=$COLUMNS
# set vi-compatible mode for the command line
set -o vi
# Cache and complete Cheats
if [ ! -r ~/.cheats ]; then
echo "Rebuilging Cheat cache..."
cheat sheets | egrep '^ ' | awk '{print $1}' > ~/.cheats
fi
complete -W "$(cat ~/.cheats)" cheat
# include functions, aliases & bashrc
if [ -f ~/.bash_functions ]; then
. ~/.bash_functions;
fi
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases;
fi
# Include AWS stuff
if [ -f ~/.aws/config ]; then
. ~/.aws/config
fi
# Bash completion
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
complete -C ~/.bash_completion.d/rake -o default rake
export PS1='\[\033[01;32m\]\u \[\033[01;33m\]\w$(__git_ps1 " \[\033[01;36m\](git: %s\[\033[01;39m\]$(git-dirty)\[\033[01;36m\])")$(shr screen_dirsize)\[\033[01;37m\]\n\$\[\033[00m\] '