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


Click here to return to the '10.4: Use Preview to view formatted man pages' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use Preview to view formatted man pages
Authored by: fds on Dec 30, '05 07:41:37AM
That's not a quoting issue, in bash, aliases cannot contain parameters.
Functions can, however:
pman() { man -t "$@" | open -f -a Preview; }

[ Reply to This | # ]
10.4: Use Preview to view formatted man pages
Authored by: kreatix on Dec 30, '05 03:17:29PM

And how would you use this to make an alias in .profile?



[ Reply to This | # ]
10.4: Use Preview to view formatted man pages
Authored by: theilgaard on Jan 03, '06 04:38:52AM
In 10.4 I saved the above function in my .bash_profile file located at the root of my home folder.

[ Reply to This | # ]