bash-otp icon indicating copy to clipboard operation
bash-otp copied to clipboard

RFC: Add binary location independent wrapper and installer

Open prahal opened this issue 1 year ago • 1 comments

This adds a wrapper around otp.sh that when linked to another location calls otp.sh with its install location. That is when you link otp to a directory in your PATH you can call "otp" and have it resolve the token location (otp wrapper has to be still located in the same directory as otp.sh and tokenfiles). The Makefile is pretty bare as it only link the otp wrapper in the user $HOME/.local/bin location. From https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html this directory should be in the PATH of user sessions already. Still user might want to "install" otp to other location.

prahal avatar May 03 '23 07:05 prahal

Also, I did not add the "make install" instruction to the README.

prahal avatar May 03 '23 07:05 prahal