In bash I can unset a variable with
unset myvar
In fish I get
fish: Unknown command 'unset'
What's the equivalent for unset in fish.
In bash I can unset a variable with
unset myvar
In fish I get
fish: Unknown command 'unset'
What's the equivalent for unset in fish.
Fish uses options on the
set
command to manipulate shell variables.Unset a variable with the
-e
or--erase
option.Additionally you can define a function
or an abbreviation
or an alias in
~/.config/fish/config.fish