Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: Easily view man pages with Preview' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Easily view man pages with Preview
Authored by: milksheikh on Nov 02, '03 02:36:54PM
Nice tip!

At least in tcsh, you can avoid needing to create a separate script file by adding an alias to your .cshrc file:


alias preman 'man -t \!^ > /tmp/\!^.ps; open /tmp/\!^.ps'
No idea if this works under bash...

I'm also in the habit of putting aliases in the file ~/.aliases, and then reading that in using

source ~/.aliases
in my .cshrc.

That way, I can add a new alias quickly with "cat >> ~/.aliases" and reload by typing "source ~/.aliases", and also keeping all the aliases together nice and neatly.

Important aliases for the command line hacker:


alias rm 'rm -i'
alias cp 'cp -i'
alias mv 'mv -i'
Reduces the risk of you deleting/overwriting anything inadvertantly.

alias ls 'ls -l'
is also a must for me.

[ Reply to This | # ]