fish shell create variable code example
Example 1: change default shell fish
> echo /usr/local/bin/fish | sudo tee -a /etc/shells
> chsh -s /usr/local/bin/fish
Example 2: fish script set variable
# Setting a normal variable
set varname "variable"
# Setting a variable as a result from a command
set varname (command)