Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I love fish, and use it for almost everything.

The one thing I haven't been able to get it to do is to define and export environment variables properly..

So I typically open the terminal in Bash, do whatever sourcing bash scripts that set up environment variables, or do something like that by hand, then run fish.

Kudos to the developers for building a great productivity tool. No tool is perfect, fish has its warts but it's made me much more productive.



I run it similarly.

A lot of tools add bits to .profile/.bashrc/.bash_profile so this allows inheriting that.

I use tmux and if has an option for setting the default shell and that’s where I set it.

Open terminal, loads bash with it’s environments, then tmux loads fish.


This is a great idea, and one that I think would fit my workflow very well!

I've tried fish in the past and loved it, but moved back to zsh when I realized that writing my personal scripts in fish essentially meant that I wasn't able to share them with colleagues.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: