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
The [once] table should be a table that only runs if it hasn't setup any of its environment variables yet. It will do this by adding a environment variable __xshe_NAME, where NAME is the name of each environment variable.
For example, to set PATH without having it keep being modified every time xshe.toml gets sourced, this can be done:
This will set these two environment variables if there is not a environment variable named $__xshe_PATH set to 1: $PATH to the expected value, and $__xshe_PATH to 1.
Additionally, specific tables [shell.SHELL.once] (where SHELL is any of the supported shells) should be created that work like shell.SHELL but only run if the given shell is being used.
The text was updated successfully, but these errors were encountered:
v0.4.0 is shaping up to be a big release already, so I'm going to remove this issue from the v0.4.0 milestone. This issue will probably be implemented in v0.5.0.
The
[once]
table should be a table that only runs if it hasn't setup any of its environment variables yet. It will do this by adding a environment variable__xshe_NAME
, whereNAME
is the name of each environment variable.For example, to set
PATH
without having it keep being modified every timexshe.toml
gets sourced, this can be done:This will set these two environment variables if there is not a environment variable named
$__xshe_PATH
set to1
:$PATH
to the expected value, and$__xshe_PATH
to1
.Additionally, specific tables[shell.SHELL.once]
(whereSHELL
is any of the supported shells) should be created that work likeshell.SHELL
but only run if the given shell is being used.The text was updated successfully, but these errors were encountered: