Inherit all env variables in the tmux
session
This commit is contained in:
parent
8c9c6cd411
commit
c533b66c4e
1 changed files with 1 additions and 2 deletions
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue