on How to make it such that, when running `command`, it automatically does `SOME_ENV_VAR=value command`? (something cleaner than aliases?) · c/linux · 1 pts · 3yYou 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/
on How to make it such that, when running `command`, it automatically does `SOME_ENV_VAR=value command`? (something cleaner than aliases?) · c/linux · 10 pts · 3yYou 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.shor as @treadful noted.bash_aliases.bash_aliases:source .aliases/program_x.shsource .aliases/program_y.shThis 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/
You could source an
aliases.shfile on your .bashrc where you define your aliases, so that they don't fill up your bashrc.For example, in your bashrc:
source ~/.aliases.shThis way you could also create a file with aliases per program.