Live data from Hacker News

fish shell

fishshell.com

21–30 of 78 posts

Re: fish shell

#21

I've been using fish for a while now. Overall it's pretty great. Here's my fish config if you want to see an example: https://bitbucket.org/sjl/dotfiles/src/tip/fish/config.fish

For someone calling fish 'pretty great' I sure see a lot of angst towards fish in that config file! Thanks for the post though.

Re: fish shell

#22

One of my favourite features: a single configuration file. No more .bashrc and .bash_profile . However, it seems like Fish is not fully POSIX-compatible, therefore you can face weird problems in Vim plugins, for example.

I just leave bash as my system shell and just configure my terminal emulator to start with fish.

Re: fish shell

#23
post #19
post #12

Earlier quoted context omitted.

I am a year-or-two-old fishshell convert who is reasonably well versed in bash and tried using zsh and bash with a big .bashrc. A few things stand out to me as huge pluses: - It has a lot of cool functionality out of the box such as highlighting, smarter autocomplete (type in a partial word at the prompt and hit up instead of the cumbersome bash ctrl r/s history prompt that loves to beep at you), directory history (a…

Do you know anyone with a 10k .bashrc?

I know people with well more than that, particularly when you factor in 'oh my zsh' and its ilk.

Re: fish shell

#24
I have been using fish for a few months exclusively on my Mac. I really miss a few bashisms: mostly pressing esc-. inserts the last part of the last command. I have not changed the shell on my server, somehow I am afraid of breaking things... (bad shell scripts that don't have correct shebang line).

Re: fish shell

#26

I have been using fish for a few months exclusively on my Mac. I really miss a few bashisms: mostly pressing esc-. inserts the last part of the last command. I have not changed the shell on my server, somehow I am afraid of breaking things... (bad shell scripts that don't have correct shebang line).

esc-. is my biggest miss as well. There are discussions on this but still havent been able to fix it on osx in iterm2 myself. Did get option-. to work for now but esc-. has 20+ years of pure reflex action burned into my brain.

Re: fish shell

#28
post #23
post #19

Earlier quoted context omitted.

Do you know anyone with a 10k .bashrc?

I know people with well more than that, particularly when you factor in 'oh my zsh' and its ilk.

I am not sure I would include oh-my-zsh as someone's personal zshrc. Moreover I thought OP had made a distinction between bash (10k) and zsh (1k) so I am not sure how o-m-z counts as a bashrc? I will take your word for it but I cant imagine what people put in there bashrc to get to 10k. The entire bash-it repository is 8,588 and over a third of it is bash completions which seems to duplicate the majority of what is already provided by bash-completion. And I am not sure that bash-completion is really "my .bashrc."

  $ cd bash-it
  $ sloccount ./ 
  ...SNIP...
  SLOC    Directory       SLOC-by-Language (Sorted)
  3198    completion      sh=3198
  3168    plugins         sh=3168
  1081    themes          sh=1081
  748     lib             sh=748
  242     aliases         sh=242
  135     top_dir         sh=135
  16      template        sh=16
  0       custom          (none)


  Totals grouped by language (dominant language first):
  sh:            8588 (100.00%)

Are there some big bashrc customizations that I might be overlooking?

edited to reflect distinction between parent and grandparent comment

Re: fish shell

#29

I like the features it has, but every time someone post a link to fish shell, I wonder why I would switch from bash or zsh. Will this really be THAT MUCH BETTER? Will I just run into weird errors? Is it totally sh compliant? These are important things to know and should be on the homepage.

It is NOT totally sh compliant. Intentionally.

Re: fish shell

#30

I like the features it has, but every time someone post a link to fish shell, I wonder why I would switch from bash or zsh. Will this really be THAT MUCH BETTER? Will I just run into weird errors? Is it totally sh compliant? These are important things to know and should be on the homepage.

Take a look at the concept of status quo bias.

What I do is spawn fish at the end of my .zshrc that way I can just exit if I run into something that doesn't work with fish.

The biggest plus for me is that the default auto complete in fish is twice as smart as the other ones.

Post reply on HN