User Tools

Site Tools


bashrc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
bashrc [2009/04/08 09:17] 212.84.235.66bashrc [2009/11/28 16:53] 92.195.113.39
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 [ "$PS1" ]; then if [ "$PS1" ]; then
 +  # load system defaults
 +  if [ -f /etc/profile ]; then
 +    . /etc/profile
 +  fi
  
   # handy file conversion tools   # handy file conversion tools
Line 61: Line 65:
   fi   fi
  
-  # ssh keymanager - see http://wiki.splitbrain.org/ssh+  # ssh keymanager - see http://notes.splitbrain.org/ssh
   if [ -e /usr/bin/keychain ]; then   if [ -e /usr/bin/keychain ]; then
     keychain -q ~/.ssh/id_dsa     keychain -q ~/.ssh/id_dsa
Line 85: Line 89:
   }   }
  
-  # twitter client +  # set a sane editor 
-  twitter(){ +  if [ -e /usr/bin/vim ]; then 
-    local user='myusername'; +    export EDITOR=/usr/bin/vim 
-    local pass='mypass'; +    alias vi=/usr/bin/vim 
-    local twit=`echo -n "$@"+  fi
-    if [ -z "$twit" ]; then +
-        echo 'Enter your twit and hit return' +
-        read twit +
-    fi +
-    echo -n 'wait...' +
-    curl -u"$user:$pass" -dstatus="$twit" https://twitter.com/statuses/update.xml >/dev/null 2>&1 && echo 'okay' +
-  }+
  
   # print a fortune cookie   # print a fortune cookie
-  if [ -e /usr/games/fortune ]; then+  if which fortune >/dev/null; then
     if [ -z "$COLORTERM" ]; then     if [ -z "$COLORTERM" ]; then
-      /usr/games/fortune -a -s+      fortune -a -s
     else     else
       echo -en "\033[0;36m"       echo -en "\033[0;36m"
-      /usr/games/fortune -a -s+      fortune -a -s
       echo -en "\033[0;37m"       echo -en "\033[0;37m"
     fi     fi
bashrc.txt · Last modified: 2010/04/28 18:45 by 92.195.193.18