mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Allow g_log_forks to be set by fish_log_forks env var
This commit is contained in:
parent
44f3f51e0d
commit
afd78f3f0b
1 changed files with 5 additions and 3 deletions
8
env.cpp
8
env.cpp
|
@ -667,10 +667,12 @@ void env_init()
|
||||||
ENV_GLOBAL | ENV_EXPORT );
|
ENV_GLOBAL | ENV_EXPORT );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/* Set correct defaults for e.g. USER and HOME variables */
|
||||||
Set correct defaults for e.g. USER and HOME variables
|
|
||||||
*/
|
|
||||||
env_set_defaults();
|
env_set_defaults();
|
||||||
|
|
||||||
|
/* Set g_log_forks */
|
||||||
|
env_var_t log_forks = env_get_string(L"fish_log_forks");
|
||||||
|
g_log_forks = ! log_forks.missing_or_empty() && from_string<bool>(log_forks);
|
||||||
}
|
}
|
||||||
|
|
||||||
void env_destroy()
|
void env_destroy()
|
||||||
|
|
Loading…
Reference in a new issue