mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Remove $version
It's too generic a name - which both does not communicate what it is and prevents someone else from using it.
This commit is contained in:
parent
91962d8aa2
commit
95635a5982
1 changed files with 2 additions and 3 deletions
|
@ -286,7 +286,7 @@ static bool variable_is_colon_delimited_array(const wcstring &str) {
|
|||
void env_init(const struct config_paths_t *paths /* or NULL */) {
|
||||
// env_read_only variables can not be altered directly by the user.
|
||||
const wchar_t *const ro_keys[] = {
|
||||
L"status", L"history", L"version", L"_", L"LINES", L"COLUMNS", L"PWD",
|
||||
L"status", L"history", L"_", L"LINES", L"COLUMNS", L"PWD",
|
||||
// L"SHLVL", // will be inserted a bit lower down
|
||||
L"FISH_VERSION",
|
||||
};
|
||||
|
@ -354,9 +354,8 @@ void env_init(const struct config_paths_t *paths /* or NULL */) {
|
|||
}
|
||||
}
|
||||
|
||||
// Set up the version variables.
|
||||
// Set up the version variable.
|
||||
wcstring version = str2wcstring(get_fish_version());
|
||||
env_set(L"version", version.c_str(), ENV_GLOBAL);
|
||||
env_set(L"FISH_VERSION", version.c_str(), ENV_GLOBAL);
|
||||
|
||||
// Set up SHLVL variable.
|
||||
|
|
Loading…
Reference in a new issue