I downloaded the CLI Client habash for the habit/routine gameification project habatica.com. In the fandom wiki for habash it is written that, I need to set environment variables. Additonally I want to make the program habash an ordinary CLI-program, so that I dont have to invoke it via the fullpath. I describe now, what I have been doing. I did the following.
- After
declare -x HABITICA_UUID=[myUserID]I did not find any entries in ~/.bashrc. Any one knows why? - Therfore I added HABITICA_UUID and HABITICA_TOKEN at the top of ~/.bashrc (and made a comment for myself)
chmod 600 ~/.bashrcbecause UUID and TOKEN are regarded as PWs.sudo mv ./habash /optsudo ln -s /opt/habash/habash /usr/local/bin
Is this the best way how to do it? (storing in /opt and linkint to /usr/local/bin ; variables in .bashrc and chmoding it with 600)