# .bashrc # Created: 2000/06/01 Richard Shiao # Last Modified: 2003/09/01 Richard Shiao # # To obtain the most recent file, go to # http://www.geocities.com/IntroToEECS/ ########################################################################### # User specific aliases and functions # Set prompt to be "user@machine:currentdir[lineNo]>" # Fill this part in. # To list directories with a slash at the end alias ls="ls -F" # To list hidden files as well alias lsa="ls -Fa" # To list detailed everything and pipe it one screenful at a time alias all="ls -Fal | more" # To prompt user before really removing something alias rm="rm -i" # To prompt user before really moving something alias mv="mv -i" # To prompt user before really copying something alias cp="cp -i" # To go to the home directory, then into a directory MyDocuments and listing contents # (You need to set up a MyDocuments folder first, then you can uncomment this. # alias go="cd ~; # cd MyDocuments; # ls" # To copy a file called template.c into current directory and call it newfile.c # (Uncomment this when you need it.) # alias newcfile="cp ~/MyDocuments/template.c newfile.c" # Equivalent to go # (You can uncomment this when you can use it). # alias home="go" # To go up one directory, state current location, and print current contents alias up="cd ..; echo 'Current Directory: '; pwd; echo ' '; echo 'Contents: '; ls" # To run gcc with all the nice little flags. # (Uncomment this to enable it.) # alias gcc="gcc -g -Wall -lm -o"; # To run ping alias ping="/usr/sbin/ping" # To say bye exit logout alias bye="exit" # CS164 #alias spim="~cs164/bin/spim" #alias coolc="~cs164/bin/coolc" #alias harsun="~cs164/bin/arch/sun4u/xemacs" #alias harx86="~cs164/bin/arch/i86pc/xemacs" #PATH=$PATH:~cs164/bin # CS170 # if arch=i86, do something # else (arch=sun4u): alias 170glookup="~cs170/bin/arch/sun4u/glookup" alias 170stat="glookup170 -s" # CS188 alias 188glookup="~cs188/glookup" # echo is a command just to print stuff out. # The following is a greeting each time you start up bash. echo "======================================================================" echo " Welcome Richard! " echo "======================================================================" echo " " # To display the calendar for the month June 2000 cal 06 2000 # The following is commented out because I'm tired of it. #echo " " #echo " --- Quotas Status --- " #quota #echo " " # #echo " --- Groups Status --- " #groups #echo " " # #echo " --- Online Status --- " #who echo "======================================================================" echo " " # Start in default directory: MyDocuments go # Keep this bottom part as is. This was in the original file. # It is a command to execute the global definitions for bash. ############################################################################ # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi