mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:06:41 +00:00
23 lines
458 B
Bash
23 lines
458 B
Bash
#
|
|
# Shell Init
|
|
#
|
|
|
|
# Set path to root of dotfiles
|
|
if [ -n "${BASH_SOURCE[0]}" ]; then
|
|
DOTFILES="`dirname \"${BASH_SOURCE[0]}\"`"
|
|
elif [ -n "$0" ]; then
|
|
DOTFILES="`dirname \"$0\"`"
|
|
fi
|
|
|
|
# # Load main dotfiles
|
|
DOTSHELL="$DOTFILES/shell"
|
|
if [ -f "$DOTSHELL/_main.sh" ]; then
|
|
source "$DOTSHELL/_main.sh"
|
|
fi
|
|
|
|
# # Setup and load private dotfiles
|
|
DOTPFILES="$DOTFILES/private"
|
|
if [ -f "$DOTPFILES/shellrc.sh" ]; then
|
|
source "$DOTPFILES/shellrc.sh"
|
|
fi
|