alias perlfunc='perldoc -f' # or as a function: function perlfunc { local func=${1:?"Need a function name"} perldoc "$1" } # add one of the above to your ".bashrc...