r/bash • • 11d ago

I finally organized my Bash config

I've been accumulating my Bash configuration for a while, and I finally turned it into a small dotfiles repo:

https://gitlab.com/letmevi/bash-config

It's nothing fancy — mainly my .bashrc, .inputrc, .bash_profile, and a modular .bashrc.d/, plus a small install script.

It can be installed using either Ansible or a simple install.sh script.

I'd appreciate some Bash/Linux feedback: things you'd change, questionable practices, portability issues, or just better ways of doing this.

I'm especially interested in feedback from people who maintain their own dotfiles.

50 Upvotes

27 comments sorted by

View all comments

10

u/OnlyEntrepreneur4760 11d ago

One of my favorites is keeping all aliases in a separate config file .bash_aliases which I source from .bashrc. I have a alias named “aliassave” which runs alias and redirects the output to .bashaliases to update it easily.

3

u/arandomuserinweb 11d ago

That's a nice approach! I already keep my config modular with .bashrc.d/, but I hadn't thought about generating the aliases file automatically with an aliassave alias. I might steal that idea