-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
31 lines (22 loc) · 1.05 KB
/
bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
export DOTROOT="/home/kelen/dotfiles"
export SHELLROOT="${DOTROOT}/shellrc"
## environment
[[ ! -f $SHELLROOT/history.sh ]] || source "$SHELLROOT/history.sh" #2>/dev/null
[[ ! -f $SHELLROOT/environment.sh ]] || source "$SHELLROOT/environment.sh" #2>/dev/null
## Load functions
[[ ! -f $SHELLROOT/functions.sh ]] || source "$SHELLROOT/functions.sh" #2>/dev/null
[[ ! -f $SHELLROOT/commonplugin.sh ]] || source $SHELLROOT/commonplugin.sh #2>/dev/null
[[ ! -f $SHELLROOT/bashplugin.sh ]] || source "$SHELLROOT/bashplugin.sh" #2>/dev/null
[ -f "$SHELLROOT/alias.sh" ] && source "$SHELLROOT/alias.sh"
[ -f "$SHELLROOT/path.sh" ] && source "$SHELLROOT/path.sh"
[ -f "$SHELLROOT/language.sh" ] && source "$SHELLROOT/language.sh"
[ -f "$SHELLROOT/custom.sh" ] && source "$SHELLROOT/custom.sh" #2>/dev/null
# update_prompt will be called every time a command is executed.
PROMPT_COMMAND="reset_broken_terminal; update_prompt"
# PS1="\e[0;32m\]\u@\h \w \$(git_branch)\$ "
## exec zsh