From 6d4ea003ef253efa760d1195ce82993aeb4d9be8 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Date: Thu, 5 Jun 2014 09:45:55 +0200 Subject: Added the manpdf function to the bashrc file. --- bashrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bashrc') diff --git a/bashrc b/bashrc index 493d4fd..0e9076a 100644 --- a/bashrc +++ b/bashrc @@ -87,6 +87,11 @@ source $HOME/.review_completion.sh source $HOME/.g.sh source $HOME/.gcompletion.sh +# Generates a PDF version of the manual of the given command. +function manpdf() { + man -t "$1" | ps2pdf - "$1.pdf" +} + # Finally get RVM straight. -source $HOME/.rvm/scripts/rvm +[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" -- cgit v1.2.3