fish: inreplace out, make variable in

Counterpart pull request: fish-shell/fish-shell#1685.