TIL: Fish environment variable for just one command

January 2, 2022
shell fish

Happy Fish shell user for years, but I'm never able to remember how to set an environment variable for a single command. Maybe I'll remember if I write it down:

env SOME_VAR=1 command