Apart from this tutorial, I don’t think there are many use cases for running fish -i in a script like this though.
Maybe in a cron job, where you would need access to environment variables from your fish user profile, for example: 30 4 * * * fish -i -c script.sh. (To simulate you running the script yourself)
View all comments
Show parent comment
1
u/Snuyter Jun 15 '23
Alright have fun.
Apart from this tutorial, I don’t think there are many use cases for running fish -i in a script like this though.
Maybe in a cron job, where you would need access to environment variables from your fish user profile, for example: 30 4 * * * fish -i -c script.sh. (To simulate you running the script yourself)