Manage, switch and template licenses
- coreutils for stuff like
head
,awk
, ... - fzf (optional) for
pick-license
/p
subcommands - git (optional) for generating info in default config automatically
- ncurses (optional) for colours (
LMGR_COLOURS=1
) usingtput
- Gentoo Linux
- Linux
git clone https://ari-web.xyz/gh/lmgr && cd lmgr
sudo install -Dm755 lmgr /usr/local/bin
Configuration can be found in ~/.config/license.conf
, it is automatically
generated on first launch
- AUTHOR_NAME -- Your full name
- AUTHOR_EMAIL -- Your email
- AUTHOR_WEBSITE -- Your website
- (optional) TEMPLATE_DIR -- Where are your license templates stored (default:
~/.config/licenses/
)
Example config:
#!/usr/bin/env sh
export AUTHOR_NAME='Joe Doe'
export AUTHOR_EMAIL='joe@doe.com'
export AUTHOR_WEBSITE='https://joe.doe/'
export TEMPLATE_DIR='/usr/share/lmgr'
Remember the config is just a POSIX shell script, so you can run any command, overwrite any variable and in general do anything you can in shellscript
Just run lmgr h
and see yourself