nicoag328@lemmy.mltoLinux@lemmy.ml•How to make it such that, when running `command`, it automatically does `SOME_ENV_VAR=value command`? (something cleaner than aliases?)English
8·
1 year agoYou could source an aliases.sh
file on your .bashrc where you define your aliases, so that they don’t fill up your bashrc.
For example, in your bashrc:
source ~/.aliases.sh
This way you could also create a file with aliases per program.
You can source other files inside
aliases.sh
or as @treadful noted.bash_aliases
.bash_aliases
:source .aliases/program_x.sh
source .aliases/program_y.sh
This way you can have a file with aliases for each application or group of applications.
But it would be helpful if you provided more information on what you really want to do. Read https://xyproblem.info/