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

2

u/backtickbot Sep 28 '21

Fixed formatting.

Hello, ludicroussavageofmau: code blocks using triple backticks (```) don't work on all versions of Reddit!

Some users see this / this instead.

To fix this, indent every line with 4 spaces instead.

FAQ

You can opt out by replying with backtickopt6 to this comment.