nicoag328

joined 1 year ago
[โ€“] nicoag328@lemmy.ml 1 points 1 year ago

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/

[โ€“] nicoag328@lemmy.ml 4 points 1 year ago (5 children)

You 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.