Hacker News new | past | comments | ask | show | jobs | submit login

I had similar problems, and found a work around that works great for me:

bash is configured as my default shell. So every program that runs my default shell and just assumes it can use POSIX syntax, gets what it wants (even though it should really just use /bin/sh).

My terminal on the other hand is configured to ignore my default shell and run fish instead.

I also have a line in my .bash_profile (meaning it only runs for login shells) that checks whether it's running in a virtual terminal and in that case exec's fish in a new tmux (because tmux is a terminal emulator, which means that any bash instances within it won't know they are in a virtual terminal and behave like a normal bash).




Thank you, this is really good strategy, I had similar reservations about fish and I think this both makes sense and resolves them.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: