I'm trying to add the following bash scripts to fish, yet am having trouble getting the syntax in fish right. Here is the original script:export MINION_INSTALL=$HOME/minionexport NOTES_HOME=$HOME/Notesexport INBOX=$NOTES_HOME/inboxif [ -d $MINION_INSTALL ] ; then    export PATH=$MINION_INSTALL:$PATHfisource $MINION_INSTALL/aliases_for_minionAnd this is the aliases_for_minion file:alias mn=minionalias icannotfind=minion --open --archive --full $@alias newnote=minion --new-note $@alias open=minion --open $@alias remind=minion --new-note --quick $@alias summary=minion --count inbox; minion --list --show-tags=False today; \    minion --count next; minion --count soon; minion --count someday The minion command works fine if I run fish after starting bash.Any help would be greatly appreciated!
Converting bash script to fish
bash;fish
Here's some examples of what this would look like in fish:set -x INBOX $NOTES_HOME/inboxif [ -d $MINION_INSTALL ]    set -x PATH $MINION_INSTALL $PATHendNote the absence of the quotes, which is especially important in the line that sets PATH. Quoting it would collapse all of the paths in the list to a single entry, which is not what you want.The aliases are valid in fish, except for the $@ at the end. fish has arguments as $argv, not $@, but more importantly, any arguments are implicitly appended to the alias command. So you can just write:alias newnote=minion --new-noteThen, for example, newnote foo bar will become minion --new-note foo barIf you like, you can verify it with functions newnote, which will show you the function that the alias produced.Hope that helps!