Fix: shell env not broken

This commit is contained in:
Lockszmith 2022-10-24 08:58:08 -04:00
parent 278be5a6c6
commit e11998c263
2 changed files with 1 additions and 23 deletions

View File

@ -124,7 +124,7 @@
"background": "black",
"powerline_symbol": "",
"style": "powerline",
"template": "{{ if gt .Env.SHLVL_pqb \"1\" }}{{ .Env.SHLVL_pqb }}{{ end }}"
"template": "{{ if gt .Env.SHLVL_sz \"1\" }}{{ .Env.SHLVL_sz}}{{ end }}"
},
{
"type": "command",

View File

@ -7,27 +7,6 @@ unset SHLVL_${SFP##*.}
IS_INTERACTIVE=${IS_INTERACTIVE:-$-}
# himBHs - Interactive
# hBc - called with `bash -c`
# Legend:
# h Locate and remember (hash) commands as they are looked up for
# execution. This option is enabled by default.
# i Interactive shell.
# m Job control is enabled (see Job Control). All processes run in a
# separate process group. When a background job completes, the
# shell prints a line containing its exit status.
# c Commands were supplied from via `bash -c` command line switch.
# B The shell will perform brace expansion (see Brace Expansion).
# This option is on by default.
# H Enable ! style history substitution (see History Interaction).
# This option is on by default for interactive shells.
# s Read commands from the standard input.
export SHRC_D=~/${SFP}.shrc.d
case $IS_INTERACTIVE in
FORCE) ;;
IS_INTERACTIVE=${IS_INTERACTIVE:-$-}
# himBHs - Interactive
unset IS_INTERACTIVE
# hBc - called with `bash -c`
# h Locate and remember (hash) commands as they are looked up for
# execution. This option is enabled by default.
# i Interactive shell.
@ -70,4 +49,3 @@ if [ -d ${SHRC_D} ]; then
fi
[ -z ${DBG_SHRC} ] || echo "Exiting ${SFP}.shrc"