Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use local::lib with fish shell?

Tags:

shell

perl

fish

I'm still quite new to fish shell but this is really important for making me want to stay using it.

If I try and activate local::lib with a normal bash style command:

eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"

I get:

$(...) is not supported. In fish, please use '(perl)'.
fish: eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"
like image 422
mikejw Avatar asked Sep 01 '25 10:09

mikejw


1 Answers

Just remove $ and double quotes in "$()",

eval (perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)
like image 104
mpapec Avatar answered Sep 04 '25 02:09

mpapec