How do I change EDITOR to be Pico in fish shell?

This is the canonical way to do so

set -Ux EDITOR pico
  • U for universal variable
  • x to export it

This FAQ suggests adding set -gx EDITOR pico to ~/.config/fish/config.fish