diff --git a/dot_config/zsh/include/functions.zsh b/dot_config/zsh/include/functions.zsh index 2a0e05d..aafe390 100644 --- a/dot_config/zsh/include/functions.zsh +++ b/dot_config/zsh/include/functions.zsh @@ -25,3 +25,14 @@ pocompile() { msgfmt -o "${app_po%po}mo" "$app_po" } + +man() { + if [[ "$1" = -k ]]; then + command man "$@" + elif [[ -n "$1" ]]; then + vim man://$1 + else + echo 'What manual page do you want?' + return 1 + fi +}