correct way of storing external programm and making it executable?
1
vote
1
answer
54
views
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 ~/.bashrc
because UUID and TOKEN are regarded as PWs.
- sudo mv ./habash /opt
- sudo 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)
Asked by Josomeister
(61 rep)
Feb 9, 2021, 05:05 PM
Last activity: Feb 9, 2021, 08:50 PM
Last activity: Feb 9, 2021, 08:50 PM