Kajika, 1 year ago You can add a new executable in your ~/.local/bin directory like command_custom that would start SOME_ENV_VAR=value command. Like if you use bash: <pre style="background-color:#ffffff;"> <span style="font-style:italic;color:#969896;">#!/usr/bin/bash </span><span style="color:#323232;"> </span><span style="color:#323232;">SOME_ENV_VAR</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">value </span><span style="color:#62a35c;">command </span> Do not forget to chmod +x the file to make it executable. This way you will have additional command for your user only (no sudo require to create/update those), for system-wise command put it in /usr/local/bin.
You can add a new executable in your ~/.local/bin directory like command_custom that would start SOME_ENV_VAR=value command. Like if you use bash:
~/.local/bin
command_custom
SOME_ENV_VAR=value command
<pre style="background-color:#ffffff;"> <span style="font-style:italic;color:#969896;">#!/usr/bin/bash </span><span style="color:#323232;"> </span><span style="color:#323232;">SOME_ENV_VAR</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">value </span><span style="color:#62a35c;">command </span>
Do not forget to chmod +x the file to make it executable.
chmod +x
This way you will have additional command for your user only (no sudo require to create/update those), for system-wise command put it in /usr/local/bin.
/usr/local/bin