mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-18 20:11:15 -03:00
Restore %self to refer to the fish pid
This brings back the %self argument. Like the original %self it only expands if the argument is literally %self.
This commit is contained in:
@@ -924,7 +924,7 @@ void env_init(const struct config_paths_t *paths /* or NULL */) {
|
||||
wcstring version = str2wcstring(get_fish_version());
|
||||
env_set_one(L"version", ENV_GLOBAL, version);
|
||||
|
||||
// Set the $fish_pid variable (%self replacement)
|
||||
// Set the $fish_pid variable.
|
||||
env_set_one(L"fish_pid", ENV_GLOBAL, to_string<long>(getpid()));
|
||||
|
||||
// Set the $hostname variable
|
||||
|
||||
Reference in New Issue
Block a user