Inherit all env variables in the tmux session

This commit is contained in:
Manuel Thalmann 2024-11-28 22:11:27 +01:00
parent 8c9c6cd411
commit c533b66c4e

View file

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