I'm looking for the equivalent of the following bash syntax, but for the fish shell:
local datafile="${_Z_DATA:-$HOME/.z}"
i.e define a local variable that will take the value of $_Z_DATA
if this one is define, or else will take the value of $HOME/.z