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


Click here to return to the 'Bash Function to open man pages in new terminal window' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Bash Function to open man pages in new terminal window
Authored by: macbates on Dec 30, '13 09:30:30AM

The command does seem to be incorrect. If you copy/paste it into a Terminal window, you get a continuation prompt:

$ function man { if [ $# -eq 1 ] ; then open x-man-page://$1 ; elif [ $# -eq 2 ] ; then open x-man-page://$1/$2 ; fi }
>

Not sure what replacing a $ with a $ does, bit something is not quite right.



[ Reply to This | # ]