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: davidallie on Dec 31, '13 12:16:13PM
I added the following to my .bash_profile file:

# open man-pages in new tab
mant() {
if [ $# -eq 1 ]; then open x-man-page://$1 ; elif [ $# -eq 2 ] ; then open x-man-page://$1/$2 ; fi
}


and if I enter 'mant ditto' it opens the man-page for ditto in a new window. Works great.

[ Reply to This | # ]