navi icon indicating copy to clipboard operation
navi copied to clipboard

System-wide navi cheats

Open MatthieuBizien opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe. I want to use Navi as a sysadmin, and install cheatsheets for all the users, to ease onboarding.

Describe the solution you'd like Navi could also read cheatsheets from a global directory like /usr/local/share/navi.

A --system option could be added to navi repo add that write from that directory (with sudo).

Describe alternatives you've considered Installing it per user is bug-prone and tedious, especially with multiple remote computers.

MatthieuBizien avatar Aug 06 '21 12:08 MatthieuBizien

Thanks for opening your first issue here! In case you're facing a bug, please update navi to the latest version first. Maybe the bug is already solved! :)

welcome[bot] avatar Aug 06 '21 12:08 welcome[bot]

As a workaround, you can:

  • manually cp or git clone the cheats to /usr/local/share/navi
  • globally set the navi path somehow: for example you could export NAVI_PATH=/usr/local/share/navi inside /etc/profile or sth like that

denisidoro avatar Aug 06 '21 13:08 denisidoro

Additional though, to introduce to what cheats to download during install (emerge for Gentoo) time, like

Navi-Cheats="tldr, cheats.sh" 

Similar way is done for nerd-fonts in Gentoo.

orleanski avatar Nov 26 '21 21:11 orleanski