use nvim as man reader
This commit is contained in:
parent
884b244023
commit
0c6cb10c3d
1 changed files with 11 additions and 0 deletions
|
@ -25,3 +25,14 @@ pocompile() {
|
||||||
|
|
||||||
msgfmt -o "${app_po%po}mo" "$app_po"
|
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
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue