bashrc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
bashrc [2009/04/08 09:17] – 212.84.235.66 | bashrc [2009/05/16 15:03] – andi | ||
---|---|---|---|
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 61: | Line 65: | ||
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 83: | Line 87: | ||
mkdir -p $td; cd $td | mkdir -p $td; cd $td | ||
unset td | unset td | ||
- | } | ||
- | |||
- | # twitter client | ||
- | twitter(){ | ||
- | local user=' | ||
- | local pass=' | ||
- | local twit=`echo -n " | ||
- | if [ -z " | ||
- | echo 'Enter your twit and hit return' | ||
- | read twit | ||
- | fi | ||
- | 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