2016-01-06 11:55:04 -06:00
|
|
|
export DOTFILES_PATH=$HOME/.dotfiles
|
|
|
|
|
2016-11-29 12:11:42 -06:00
|
|
|
# load our terminal colors
|
2016-01-06 11:55:04 -06:00
|
|
|
BASE16_SHELL="$DOTFILES_PATH/colors/shell"
|
|
|
|
[[ -s "$BASE16_SHELL" ]] && source "$BASE16_SHELL"
|
|
|
|
|
2016-11-29 12:11:42 -06:00
|
|
|
# if we're a proper terminal?
|
2016-07-14 15:22:19 -05:00
|
|
|
if [ -t 0 ]; then
|
2016-11-29 12:11:42 -06:00
|
|
|
# load variables
|
2016-07-15 12:17:12 -05:00
|
|
|
source "$DOTFILES_PATH/variables.bash"
|
|
|
|
|
2016-07-14 15:22:19 -05:00
|
|
|
# disable ctrl-s terminal freeze
|
|
|
|
[[ $- == *i* ]] && stty -ixon
|
|
|
|
|
2016-11-29 12:11:42 -06:00
|
|
|
# import our aliases
|
|
|
|
source "$DOTFILES_PATH/env/sh/aliases"
|
2016-07-14 15:22:19 -05:00
|
|
|
|
2016-11-29 12:11:42 -06:00
|
|
|
# import out global shell functions
|
|
|
|
source "$DOTFILES_PATH/env/sh/shell_funcs"
|
2016-07-14 15:22:19 -05:00
|
|
|
|
2016-11-29 12:11:42 -06:00
|
|
|
# import our prompt
|
|
|
|
source "$DOTFILES_PATH/env/sh/prompt"
|
2016-07-15 11:13:29 -05:00
|
|
|
|
2016-11-29 12:11:42 -06:00
|
|
|
# autocompletions
|
2016-07-14 15:22:19 -05:00
|
|
|
complete -cf sudo
|
|
|
|
complete -cf man
|
|
|
|
|
|
|
|
# allow a per-device script that is pulled in
|
|
|
|
if [ -a "$HOME/.bashrc_env" ]; then
|
|
|
|
. "$HOME/.bashrc_env"
|
|
|
|
fi
|
2016-08-30 17:14:27 -05:00
|
|
|
|
2016-11-29 12:11:42 -06:00
|
|
|
# this bashrc assumes a home directory like /home/username/usr in order to
|
|
|
|
# keep dotfiles from cluttering up an "actual" home directory /home/username
|
|
|
|
# this snippet will redirect new terminals to the "actual" home directory
|
2016-09-12 23:58:01 -05:00
|
|
|
if [ "$PWD" = "$HOME" ]; then
|
|
|
|
cd "$HOME/.."
|
|
|
|
fi
|
2016-09-20 03:07:33 -05:00
|
|
|
|
2016-11-29 12:11:42 -06:00
|
|
|
# prevents binds or commands pulling from history from insta-sending, and
|
|
|
|
# instead places them in the readline for editing
|
2016-11-21 16:17:11 -06:00
|
|
|
shopt -s histverify
|
2016-11-29 12:11:42 -06:00
|
|
|
|
|
|
|
# prevents some Java GUI apps from not working or rendering properly due to
|
|
|
|
# using bspwm
|
2016-11-26 18:20:00 -06:00
|
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
2016-11-21 16:17:11 -06:00
|
|
|
|
2016-11-29 12:11:42 -06:00
|
|
|
# load our binds if we've got any inputs
|
2016-09-24 06:25:35 -05:00
|
|
|
bind -f "$HOME/.inputrc"
|
2016-01-06 11:55:04 -06:00
|
|
|
fi
|