bashrc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
bashrc [2008/03/28 09:21] – fix terminal wrapping andi | bashrc [2010/04/21 14:31] – 91.64.124.84 | ||
---|---|---|---|
Line 14: | Line 14: | ||
# be sure to do to all this on interactive shells only | # be sure to do to all this on interactive shells only | ||
if [ " | if [ " | ||
+ | # load system defaults | ||
+ | if [ -f / | ||
+ | . / | ||
+ | fi | ||
# handy file conversion tools | # handy file conversion tools | ||
Line 25: | Line 29: | ||
alias ll='ls -l' | alias ll='ls -l' | ||
alias la='ls -A' | alias la='ls -A' | ||
- | alias l='ls -la' | + | alias l='ls -la' |
+ | export GREP_OPTIONS=' | ||
# color in man pages http:// | # color in man pages http:// | ||
Line 40: | Line 45: | ||
alias rm='rm -i' | alias rm='rm -i' | ||
alias mv='mv -i' | alias mv='mv -i' | ||
+ | |||
+ | # cleanup firefox 3 dbs | ||
+ | alias ffclean=' | ||
+ | |||
+ | # current git branch for prompt below | ||
+ | # http:// | ||
+ | parse_git_branch() { | ||
+ | git branch 2> /dev/null | sed -e '/ | ||
+ | } | ||
# set a fancy prompt and xterm title | # set a fancy prompt and xterm title | ||
Line 47: | Line 61: | ||
PS1=" | PS1=" | ||
else | else | ||
- | PS1="\[\033]2; | + | PS1='\[\033]2; |
fi | fi | ||
else | else | ||
Line 58: | Line 72: | ||
fi | fi | ||
- | # ssh keymanager - see http://wiki.splitbrain.org/ | + | # ssh keymanager - see http://notes.splitbrain.org/ |
if [ -e / | if [ -e / | ||
keychain -q ~/ | keychain -q ~/ | ||
Line 82: | Line 96: | ||
} | } | ||
- | # twitter client | + | # set a sane editor |
- | | + | if [ -e / |
- | local user=' | + | |
- | local pass=' | + | alias vi=/usr/bin/vim |
- | local twit=`echo -n " | + | |
- | | + | |
- | echo 'Enter your twit and hit return' | + | |
- | read twit | + | |
- | | + | |
- | echo -n ' | + | |
- | curl -u" | + | |
- | | + | |
# print a fortune cookie | # print a fortune cookie | ||
- | if [ -e /usr/games/ | + | if which fortune >/dev/null; then |
if [ -z " | if [ -z " | ||
- | | + | fortune -a -s |
else | else | ||
echo -en " | echo -en " | ||
- | | + | fortune -a -s |
echo -en " | echo -en " | ||
fi | fi |
bashrc.txt · Last modified: 2010/04/28 18:45 by 92.195.193.18