aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/env.cpp
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2016-05-26 16:11:26 +0200
committerGravatar Fabian Homborg <FHomborg@gmail.com>2016-05-26 18:27:37 +0200
commit95635a5982ec8ab234d925a4bb5025328a706fa3 (patch)
tree75b111a75a1e1a8c3fee2d0521a259e3bbcd8265 /src/env.cpp
parent91962d8aa2924c35a8c221142bbf27e37d87efd9 (diff)
Remove $version
It's too generic a name - which both does not communicate what it is and prevents someone else from using it.
Diffstat (limited to 'src/env.cpp')
-rw-r--r--src/env.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/env.cpp b/src/env.cpp
index 433b45f9..381b4588 100644
--- a/src/env.cpp
+++ b/src/env.cpp
@@ -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.