Inherit all env variables in the tmux session

This commit is contained in:
Manuel Thalmann 2024-11-28 22:11:27 +01:00
parent 98ff044bc2
commit 597fa1ee1f

View file

@ -41,7 +41,6 @@ function runSetupUserAction -V dir
source "$dir/settings.fish"
runActionSetup
runActionConfigure
set -l env "CONFIG_NAME=$CONFIG_NAME"
set -l name (getOSConfig setupUser.name)
if [ "$USER" != "$name" ]
@ -51,7 +50,7 @@ function runSetupUserAction -V dir
sudo --set-home --preserve-env env "PATH=$PATH" $cmdline
else
if [ -z "$TMUX" ]
tmux new-session -e "$env" $cmdline
tmux new-session env (env) $cmdline
else
set -l sudoConfig "/etc/sudoers.d/PortValhalla"