You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a task to login to AWS and a few other services.
The task writes tokens to the .env.aws file.
In the mise.toml I have:
_.file = {path=".env.aws", redact=true}
I tried with "tools=true", but seems to be the same.
When I use fish it is enough to run the task to have env updated, so I can for example use aws s3 ls.
But in zsh I have to go out of the folder and then return back to refresh my environment: cd && cd -.
I tried to work this around with _.source script that source the .env.aws, but the script is also executed only when I enter the directory.
Is there a way to refresh the current shell variables after the task run?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a task to login to AWS and a few other services.
The task writes tokens to the
.env.aws
file.In the
mise.toml
I have:I tried with "tools=true", but seems to be the same.
When I use
fish
it is enough to run the task to have env updated, so I can for example useaws s3 ls
.But in
zsh
I have to go out of the folder and then return back to refresh my environment:cd && cd -
.I tried to work this around with
_.source
script that source the .env.aws, but the script is also executed only when I enter the directory.Is there a way to refresh the current shell variables after the task run?
Beta Was this translation helpful? Give feedback.
All reactions