I want users to be able to set a variable they can use to define the level of verbosity when they run commands in the command line, when they initiate a new terminal session.
One way to set a variable is to include it in ~/.bashrc
. In its simplest form, a command like echo export MYVAR=value >> ~/.bashrc
already makes the variable available for future interactive shells.
Is this the best way to give additional control of commands to users?
The problem is that I would like for users to change the value directly from the terminal rather than having to change the value by modifying their .bashrc
.