skynet/shell/bashrc

17 lines
342 B
Bash
Raw Normal View History

2022-04-07 19:41:00 -05:00
#!/usr/bin/env bash
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# If x is available and we're not in it, start it
if [ -z "$DISPLAY" ] && [ -x "$(command -v startx)" ]; then
startx
else
# source shared config
for shared in ~/skynet/shell/bashrc.d/*.sh; do
source "$shared"
done
fi