Skip to content

TruncatedDinoSour/lmgr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

LMGR

Manage, switch and template licenses

Dependencies

  • 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) using tput

Installation

Linux

Manual

  • Linux
git clone https://ari-web.xyz/gh/lmgr && cd lmgr
sudo install -Dm755 lmgr /usr/local/bin

Configuration

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

Subcommands, configuration and environment config

Just run lmgr h and see yourself