~ foca
/.bash_profile
Include aliases and functions (see my .aliases & .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='vim'
export VISUAL=$EDITOR
export SVN_EDITOR=$EDITOR
export GIT_EDITOR=$EDITOR
export CDPATH=.:~:~/projects
export HISTIGNORE="&:ls:[bf]g:exit:[cxh]:a\ "
# 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 ~/.functions ]; then
. ~/.functions;
fi
if [ -f ~/.aliases ]; then
. ~/.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
if [ -f ~/.bashrc ]; then
. ~/.bashrc;
fi