Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cedws/man-get
CLI tool to grab Debian manpages
https://github.com/cedws/man-get
debian golang manpages
Last synced: about 2 months ago
JSON representation
CLI tool to grab Debian manpages
- Host: GitHub
- URL: https://github.com/cedws/man-get
- Owner: cedws
- License: gpl-3.0
- Created: 2023-04-11T20:55:46.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-17T22:57:16.000Z (over 1 year ago)
- Last Synced: 2024-12-08T20:36:16.889Z (about 2 months ago)
- Topics: debian, golang, manpages
- Language: Go
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# man-get
CLI tool to grab Debian manpages. I put this together out of frustration of either having to browse the web or install tools inside Docker to see manpages when working on a non-Linux system.## Usage
man-get behaves similarly to man. When a section is unspecified, it will download all available sections for the given pages. You can open these sections with `man` after appending the data path to the `MANPATH` environment variable. Since it supports the XDG Base Directory spec, you can override this path by setting `XDG_DATA_HOME`.man-get caches fetched indexes from the Debian package mirror to be friendly to their servers. The cache path can also be overridden by setting `XDG_CACHE_HOME`.
```
$ man-get tar
Downloaded TAR(1) to ~/.local/share/man-get/man1/tar.1.gz
Downloaded TAR(5) to ~/.local/share/man-get/man5/tar.5.gz
Append ~/.local/share/man-get to your MANPATH to open the downloaded manpages:Bash/Zsh:
$ export MANPATH="$MANPATH:/Users/connor.edwards/.local/share/man-get"Fish:
$ set -x MANPATH "$MANPATH:/Users/connor.edwards/.local/share/man-get"
$ man-get 1 ed
Downloaded ED(1) to ~/.local/share/man-get/man1/ed.1.gz
Append ~/.local/share/man-get to your MANPATH to open the downloaded manpages:Bash/Zsh:
$ export MANPATH="$MANPATH:/Users/connor.edwards/.local/share/man-get"Fish:
$ set -x MANPATH "$MANPATH:/Users/connor.edwards/.local/share/man-get"
$ export MANPATH="$MANPATH:/Users/connor.edwards/.local/share/man-get"
$ man tar
$ man ed
```