diff options
| author | Jeff Carr <[email protected]> | 2023-03-09 20:47:19 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-03-09 20:47:19 -0600 |
| commit | 6dcf4856ab6909205d16fa53152da83bbcf01104 (patch) | |
| tree | 2171e48c0c440cd476292206382544260ab97402 /bashrc | |
| parent | 6726877353d6c9f43d115f2515aa171a6499175e (diff) | |
reorder bash stuff
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'bashrc')
| -rw-r--r-- | bashrc/.wit | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/bashrc/.wit b/bashrc/.wit index e286960..439908d 100644 --- a/bashrc/.wit +++ b/bashrc/.wit @@ -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 |
