Monday, April 2, 2007

Viewing or editing your recent file with clever aliases

You can get away without typing the full name for last file ( ps, pdf, tex) on the command line. Use the following aliases. I use them all the time: especially when I name your file
"04_11_mybestresearch_revision3.tex"


alias emacs. 'emacs `ls -t *.tex | head -1` &'
alias pdf. 'open `ls -t *.pdf | head -1` &'
alias gv. 'gv `ls -t *.ps | head -1` &'


No comments: