From e11998c263ff2f6cf321af4ae7f0c83f80d079c3 Mon Sep 17 00:00:00 2001 From: Lockszmith Date: Mon, 24 Oct 2022 08:58:08 -0400 Subject: [PATCH] Fix: shell env not broken --- _home/dot_poshtheme.omp.json | 2 +- _home/dot_sz.shrc | 22 ---------------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/_home/dot_poshtheme.omp.json b/_home/dot_poshtheme.omp.json index d42f316..307c2a1 100644 --- a/_home/dot_poshtheme.omp.json +++ b/_home/dot_poshtheme.omp.json @@ -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", diff --git a/_home/dot_sz.shrc b/_home/dot_sz.shrc index f328fbb..0e7029d 100644 --- a/_home/dot_sz.shrc +++ b/_home/dot_sz.shrc @@ -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" -