Fix: shell env not broken
This commit is contained in:
parent
278be5a6c6
commit
e11998c263
|
@ -124,7 +124,7 @@
|
||||||
"background": "black",
|
"background": "black",
|
||||||
"powerline_symbol": "",
|
"powerline_symbol": "",
|
||||||
"style": "powerline",
|
"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",
|
"type": "command",
|
||||||
|
|
|
@ -7,27 +7,6 @@ unset SHLVL_${SFP##*.}
|
||||||
IS_INTERACTIVE=${IS_INTERACTIVE:-$-}
|
IS_INTERACTIVE=${IS_INTERACTIVE:-$-}
|
||||||
# himBHs - Interactive
|
# himBHs - Interactive
|
||||||
# hBc - called with `bash -c`
|
# 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
|
# h Locate and remember (hash) commands as they are looked up for
|
||||||
# execution. This option is enabled by default.
|
# execution. This option is enabled by default.
|
||||||
# i Interactive shell.
|
# i Interactive shell.
|
||||||
|
@ -70,4 +49,3 @@ if [ -d ${SHRC_D} ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -z ${DBG_SHRC} ] || echo "Exiting ${SFP}.shrc"
|
[ -z ${DBG_SHRC} ] || echo "Exiting ${SFP}.shrc"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue