######################################################################## # ~/.aliases # # Type 'alias' to get a list of all current aliases. # # As with '~/.aliases', if you modify this file, you must type # # source ~/.aliases # # to have changes take effect in the current shell ######################################################################## #----------------------------------------------------------------------- # Define an abbreviation for the history command, which produces a list # of your previous commands. #----------------------------------------------------------------------- alias hi=history #----------------------------------------------------------------------- # List directories in columns (-C); use special characters to # show directories [/], executable files [*], and symbolic links [@]; # also use different colors to differentiate among the different file # types # # Note the use of single quotes (') to create an alias which expands # to more than one word. #------------------------------------------------------------------------------- alias ls='ls --color=auto -CF' #----------------------------------------------------------------------- # Be cautious (prompt user) when removing or overwriting files #----------------------------------------------------------------------- alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' alias ln='ln -i' #----------------------------------------------------------------------- # Then define some aliases which aren't cautious: i.e. so you # can type 'RM foo' when you know you really want to clobber 'foo' #----------------------------------------------------------------------- alias RM='/bin/rm' alias CP='/bin/cp' alias MV='/bin/mv' alias LN='/bin/ln' #----------------------------------------------------------------------- # Make aliases for maple/xmaple to ensure that 32-bit versions, which # support the '-cw' option (Classic Cindows), are run #----------------------------------------------------------------------- alias maple='maple32' alias xmaple='xmaple32 -cw' #----------------------------------------------------------------------- # I use aliases so frequently that I abbreviate it 'a' --- you may # with to disable/delete this one! #----------------------------------------------------------------------- alias a=alias