Here are my two favorite sets of aliases.

-Tom

# mark, unmark, Mark, unMark, marklist -----------------------------------------
# Use 'Mark foo' to remember a directory location.  Then at any time
# you can type 'foo' to go back to that location.
# unMark removes the remembered location.
# Works like saving buffer locations in registers in emacs.
# ~/.Mark must exist
alias mark_cd   cd
alias mark              'set \!:1=$cwd; alias \!:1 mark_cd $cwd'
alias Mark              'unMark \!:1; mark \!:1; (echo alias \!:1 mark_cd $cwd; echo 
set \!:1 = $cwd) >> ~/.Mark'
alias unmark            'unset \!:1; unalias \!:1'
alias unMark            'unmark \!:1; sed -e "/ \!:1 /d" < ~/.Mark > ~/.Mark.new; 
/bin/mv ~/.Mark.new ~/.Mark'
alias marklist          'alias | grep "(mark_cd" | grep -v "marklist" | sed -e 
"s/(mark_cd //" -e "s/)//"'
source ~/.Mark

# These aliases change the meaning of rm so that files--------------------------
# are saved in ~/etc/garbage.  Thus if you accidentally
# delete a file you want, you can retrieve it (unrm).
# You must create the directory ~/garbage if you
# wish to use these.
alias rm                '/bin/mv -f \!:* ~/garbage'
alias unrm              '/bin/mv ~/garbage/\!:* .'
alias expunge           '/bin/rm -rf ~/garbage/{*,.[0-~]*}'
alias trash             '/usr/local/bin/ls $LS_OPTIONS -Fa ~/garbage'

> > Anyone else want to offer some neat, tricky, crafty
> > additions for an (Linux) alias file ?

*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************

Reply via email to