skynet/shell/bashrc

17 lines
342 B
Bash

#!/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