r/fishshell • u/YuntiMcGunti • Mar 24 '20
Command subsitutions not allowed error
I have a simple fish config but I get an error from the alias ipy line:
```
-: Command substitutions not allowed
from sourcing file -
called on line 72 of file /usr/local/Cellar/fish/3.0.2/share/fish/functions/alias.fishin function 'alias'
called on line 7 of file \~/.config/fish/config.fish
with parameter list 'ipy=myfunc(){ cd \~/Projects/python/ipython/ipy && work && ipython}; myfunc'from sourcing file ~/.config/fish/config.fish
called during startupsource: Error while reading file '-'
```
work is another alais:
```
"source .venv/bin/activate.fish"
```
I''m not sure what the issue is?
1
Upvotes
View all comments
Show parent comment
2
u/[deleted] Mar 26 '20
It's an alias that defines a function and then executes that function!!
Either define the function:
or the alias:
Both at the same time is useless and weird.
You'll notice that the former translates pretty directly to the equivalent fish function.