Deprecate $_ in favor of (status current-command)

Closes #813.
This commit is contained in:
Mahmoud Al-Qudsi
2018-03-24 11:58:19 -05:00
parent 6d80ab8d74
commit 515fc509ec
6 changed files with 21 additions and 8 deletions

View File

@@ -322,7 +322,7 @@ bool string_set_contains(const T &set, const wchar_t *val) {
/// Check if a variable may not be set using the set command.
static bool is_read_only(const wchar_t *val) {
const string_set_t env_read_only = {L"PWD", L"SHLVL", L"history", L"status", L"version", L"fish_pid", L"hostname", L"current_cmd"};
const string_set_t env_read_only = {L"PWD", L"SHLVL", L"history", L"status", L"version", L"fish_pid", L"hostname", L"_"};
return string_set_contains(env_read_only, val);
}