From de28e7e00c360ff2798bbdd186b153e3bb3a4dec Mon Sep 17 00:00:00 2001 From: sawka Date: Thu, 1 Aug 2024 01:53:35 -0700 Subject: [PATCH] fix wshhome/bindir --- pkg/util/shellutil/shellutil.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/util/shellutil/shellutil.go b/pkg/util/shellutil/shellutil.go index 58f53c328..81dd772c4 100644 --- a/pkg/util/shellutil/shellutil.go +++ b/pkg/util/shellutil/shellutil.go @@ -48,7 +48,7 @@ const ( # Source the original zshrc [ -f ~/.zshrc ] && source ~/.zshrc -export PATH=$WAVETERM_HOME/bin:$PATH +export PATH=$WAVETERM_WSHBINDIR:$PATH ` ZshStartup_Zlogin = ` @@ -76,7 +76,7 @@ elif [ -f ~/.profile ]; then fi set -i -export PATH=$WAVETERM_HOME/bin:$PATH +export PATH=$WAVETERM_WSHBINDIR:$PATH ` ) @@ -131,7 +131,7 @@ func WaveshellLocalEnvVars(termType string) map[string]string { rtn["TERM_PROGRAM"] = "waveterm" rtn["WAVETERM"], _ = os.Executable() rtn["WAVETERM_VERSION"] = wavebase.WaveVersion - rtn["WAVETERM_HOME"] = wavebase.GetWaveHomeDir() + rtn["WAVETERM_WSHBINDIR"] = filepath.Join(wavebase.GetWaveHomeDir(), WaveHomeBinDir) return rtn }