When using the Fish shell, you may need to run commands with local variables, like the following (Bash):
RAILS_ENV=staging rake db:migrate
This doesn't work in Fish, as setting a local variable follows another syntax, using the set
command.
You can achieve the same result with the following syntax:
set -lx RAILS_ENV staging; rake db:migrate