This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/bin/vman

9 lines
287 B
Plaintext
Raw Normal View History

2020-01-20 11:40:26 -06:00
#!/usr/bin/env sh
2018-11-08 07:32:36 -06:00
# our vim config is setup to not auto-load sessions if we set the
# `asmanviewer` variable, so launch vim that way when using vim as our man
# page viewer
2020-01-20 14:28:45 -06:00
"$EDITOR" --cmd "let asmanviewer=1" -c "SuperMan $*"
2020-01-20 11:40:26 -06:00
[ "$?" != "0" ] && echo "No manual entry for $*" && exit 1