txt/bash.txt

<0 minute read | 2024-08-16
keeping Bash clean
==================

1. make a bash folder in $XDG_CONFIG_HOME
2. source your new rc location in `.profile`
now you'll be set for login shells, but what about non-login shells?

getting bash to read this new location by default is a little tricky
you could overwrite /etc/bash.bashrc, but the simplest solution is often
the best solution. bash supports an --rcfile flag, so just explictily
the program for you hotkey daemon

for sxhkd + st, for example;

	st -e /usr/bin/bash --rcfile /path/to/rc

that's the hard part -- moving all of the configurations files around is
very self explanatory: just change the paths in your rc.

Last Edited: 2024/08/16
txt://#