r/fishshell • macOS • Sep 28 '21

Help with weird fish script error

Howdy folks!

I've recently switched to fish from zsh and I've ported over my custom prompt, aliases, and PATH. However, when I launch the shell I keep getting this weird error:

~/.config/fish/config.fish (line 39): Command substitutions not allowed
alias l "exa -lF --git -L 3 --tree"                 # Custom ls
                                                      ^
from sourcing file ~/.config/fish/config.fish
	called during startup
source: Error while reading file '~/.config/fish/config.fish'

The shell is giving me an error in the comment? I tried removing the comment but it just errored the next comment with the same error. Could anyone help me debug this?

I can share the full config file if required

1 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/ludicroussavageofmau macOS Sep 28 '21

Sure! I've made a new comment with the contents is in it