summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.bashrc-fedora1
1 files changed, 1 insertions, 0 deletions
diff --git a/.bashrc-fedora b/.bashrc-fedora
index dea1377..8768989 100644
--- a/.bashrc-fedora
+++ b/.bashrc-fedora
@@ -4,6 +4,7 @@ alias gkoji="cd ~/wrkspc/gkoji"
whichpkg() {
local found=$(which "$1")
+ [ -n "${found}" ] && found=$(man -w "$1" 2>/dev/null)
[ -n "${found}" ] && rpm -qf "${found}" || { echo; repoquery -f "*/$1";}
}