reorder bash stuff
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
6726877353
commit
6dcf4856ab
39
bashrc/.wit
39
bashrc/.wit
|
@ -1,3 +1,8 @@
|
||||||
|
case "$-" in
|
||||||
|
*i*) echo This shell is interactive ;;
|
||||||
|
*) return ;;
|
||||||
|
esac
|
||||||
|
|
||||||
# set -x
|
# set -x
|
||||||
|
|
||||||
# Some more alias to avoid making mistakes:
|
# Some more alias to avoid making mistakes:
|
||||||
|
@ -15,27 +20,6 @@ if [ "x$WIT_USER" == "x" ]; then
|
||||||
export WIT_USER=$USER
|
export WIT_USER=$USER
|
||||||
fi
|
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\$ '
|
# export PS1='\h:\w\$ '
|
||||||
umask 022
|
umask 022
|
||||||
|
@ -96,6 +80,19 @@ if [ $? == 0 ]; then
|
||||||
neofetch
|
neofetch
|
||||||
fi
|
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
|
if [[ $(type -t _git_wit) == function ]]; then
|
||||||
echo "wit bash completion already exists"
|
echo "wit bash completion already exists"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue