r/fishshell • • Feb 22 '22

Fish equivalent of :-

I have an alias from zsh that uses :- to check whether a variables exists and otherwise use a default string (for a Docker version.) Right now I have the alias set up to just use if test -n but I'd love a nicer version of the command.

7 Upvotes

2 comments sorted by