summaryrefslogtreecommitdiff
path: root/.config/bash/rc.sh
blob: 8512d8411d1793daee2618600c1ec584f97fa660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/hint/bash
# ~/.bashrc: Sourced by bash(1) for interactive non-login shells
#
# I include this file for all interactive invocations of bash(1), whether
# they are login shells or not.

# If not running interactively, don't do anything
# This line is probably not nescessary, but whatevs.
[[ $- == *i* ]] || return

# GDM failsafe ignores profile (login) settings, but I use XDG stuff
# here.
. "${XDG_CONFIG_HOME:-$HOME/.config}"/login.d/??_xdg.sh

# Include modular config files
if [[ -d ${XDG_CONFIG_HOME}/bash/rc.d ]]; then
	for file in "${XDG_CONFIG_HOME}/bash/rc.d"/*.sh; do
		. "$file"
	done
fi