News for hackers. Stuff that matters.
Re:Fish 3.4.0 by lalwanivikas on Saturday March 19, 2022 @12:03PM (#30734875)
My company has default shell as zsh so every tool assumes that. How can I switch to fish in such an environment?
Re:Fish 3.4.0 by ornornor on Saturday March 19, 2022 @12:50PM (#30735338)
Isn’t the first line a shebang that would tell which she’ll to run it with?

`#! /usr/bin/env zsh`

Re:Fish 3.4.0 by RobertMiller on Saturday March 19, 2022 @12:07PM (#30734915)
You can execute zsh scripts from a fish command line, or any other. Where is the problem?
Re:Fish 3.4.0 by kefyras on Saturday March 19, 2022 @01:25PM (#30735648)
Fish doesn't source /etc/profile{,.d}, so it won't pickup additional PATHs and other env vars that packages set there, for example.

A workaround is launching it from .bashrc/.zshrc or terminal. https://wiki.archlinux.org/title/Fish#Setting_fish_as_intera...

Re:Fish 3.4.0 by artificial on Saturday March 19, 2022 @01:47PM (#30735870)
Here’s some solutions, I’ve written a few scripts for projects to pass aws okta tokens. Absolutely worth it to use fish IME. YMMV depending on complexity https://superuser.com/questions/446925/re-use-profile-for-fi...
Re:Fish 3.4.0 by klysm on Saturday March 19, 2022 @12:27PM (#30735077)
Doesn’t sound like it would really be worth it. Zsh is at least better than bash.
Re:Fish 3.4.0 by razemio on Saturday March 19, 2022 @12:38PM (#30735186)
There should be no issue. Just execute scripts with zsh if it isn't compatible. Inside fish you could just do the following: $ zsh ./script.sh