4 ms·
Great.. here I am all ready to try switching to zsh and now here's a new fish.. Which to go for..?
by oneandoneis2 13y ago
Great.. here I am all ready to try switching to zsh and now here's a new fish..
Which to go for..?
- krat0sprakhar 13y agoIf you're just jumping off bash and don't have a long .zshrc with aliases (which might make the migration a bit painful), then without a doubt try fish!
- porker 13y agoMy situation exactly oneandoneis2! I've used Bash for 12 years, tried zsh for the last few months and not really noticed the difference tbh. Will see if fish gives me an 'aha' moment
- mathrawka 13y agoI used to use fish for a long time... eventually I switched back to zsh because of too many incompatibilities with running shell scripts.
- haarts 13y agoCouldn't you just switch shell in the (presumably) rare case when you want to run a bash shell script?
- omaranto 13y agoNo need, just run bash with the script: bash script-name. Or better yet, start the script with #!/bin/bash
- omaranto 13y agoSeveral purple have mentioned 'incompatibilities' and I don't understand the problem: sure fish syntax is different and fish cannot be used to run a sh script, so just don't try to run sh scripts with fish. Every script I've run across starts with #!/bin/sh and I can use it from fish with no difficulty (it starts up a sh). The only issue I had is that Vim assumes that your shell is sh compatible, so I put a set shell=sh in my .vimrc and now all the shell stuff in vim runs fine. What problems did you mean?
- jcampbell1 13y agoFor me, it is just random stuff is broken. One example is `git mergetool` doesn't work in fish. I have no idea why that would be the case.
- omaranto 13y agoI guess the vim issue I ran into (that I solved by telling vim to use sh: set shell=sh), is the same sort of problem as the 'git mergetool' problem you mention.
- acjohnson55 13y agoSpeaking for myself, there are a number of times when I have to source scripts from bash to get certain functionality I like. Most notably, when using virtualenv.
- nagisa 13y agoVirtualenv puts an activate.fish script into ./bin/ too.
- mvaliente2001 13y agovirtualenv has support for fish: . bin/activate.fish
- SnowLprd 13y agoAs nagisa said, you can simply use: . bin/activate.fish Even better is Virtualfish, which I've been using and contributing to very happily: https://github.com/adambrenecki/virtualfish https://github.com/adambrenecki/virtualfish
- deleted 13y ago[deleted]
- mjs 13y agoI've "skipped" zsh--I tried it a few times, but it didn't seem enough better than bash for it to be worth learning, converting all my scripts, and so on. fish does seem worth the effort, and in fact many of my bash scripts and configuration settings are now unnecessary. FWIW my (rapidly changing) fish configuration: https://github.com/ithinkihaveacat/dotfiles/tree/master/fish https://github.com/ithinkihaveacat/dotfiles/tree/master/fish
- nagisa 13y agoYou likely want to move your environment variables to ~/.pam_environment instead of setting them in fish configuration.
- mjs 13y agoIs ~/.pam_environment that cross platform? I'm trying to use the same config on Linux and OS X.
- dpacmittal 13y agoMost of the bash scripts wouldn't need converting at all. zsh, IMO, is a solid drop-in replacement for bash.