reorder bash stuff

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2023-03-09 20:47:19 -06:00
parent 6726877353
commit 6dcf4856ab
1 changed files with 18 additions and 21 deletions

View File

@ -1,3 +1,8 @@
case "$-" in
*i*) echo This shell is interactive ;;
*) return ;;
esac
# set -x
# Some more alias to avoid making mistakes:
@ -15,27 +20,6 @@ if [ "x$WIT_USER" == "x" ]; then
export WIT_USER=$USER
fi
# read in custom bash settings if you want
#if [ -f ~/jcarr/bashrc/.jcarr ] && ! shopt -oq posix; then
# . ~/jcarr/bashrc/.jcarr
#fi
# read in custom bash settings if you want
case "$WIT_USER" in
jcarr2)
. ~/jcarr/bashrc/.jcarr
;;
*)
if [ -f ~/$WIT_USER/bashrc/.$WIT_USER ] && ! shopt -oq posix; then
. ~/$WIT_USER/bashrc/.$WIT_USER
fi
;;
esac
case "$-" in
*i*) echo This shell is interactive ;;
*) return ;;
esac
# export PS1='\h:\w\$ '
umask 022
@ -96,6 +80,19 @@ if [ $? == 0 ]; then
neofetch
fi
# read in custom bash settings if you want
case "$WIT_USER" in
jcarr2)
. ~/jcarr/bashrc/.jcarr
;;
*)
if [ -f ~/$WIT_USER/bashrc/.$WIT_USER ] && ! shopt -oq posix; then
. ~/$WIT_USER/bashrc/.$WIT_USER
fi
;;
esac
if [[ $(type -t _git_wit) == function ]]; then
echo "wit bash completion already exists"
else