Live data from Hacker News

fish shell

fishshell.com

51–60 of 78 posts

Re: fish shell

#51

Earlier quoted context omitted.

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.

Can you post your solution (or give a pointer)?

function fish_user_key_bindings bind \e. 'history-token-search-backward' end

There is a thread about it here

https://github.com/fish-shell/fish-shell/issues/89

Re: fish shell

#52
I just took fish for a quick spin, and... wow -- I am impressed. It really feels "interactive". I don't think I'll replace my battle tested zsh, but even as a "grumpy old man": you should at least try it. It feels really... fresh.

Re: fish shell

#53
post #48

Earlier quoted context omitted.

Simplified example: mkdir foo, cd foo. I type in mkdir foo then press enter, type "cd esc-.". Doesn't work. Command completion in fish doesn't help here. In real life this is of course mostly more complicated than a simple "foo".

function mkcd () { mkdir -p "$1" && cd "$1" }

as I wrote: this is a simplified example ...

Re: fish shell

#54
I've been using fish for a while and have generally been very happy, I'm even working on creating a set of functions for ROS to integrate with fish the way it currently does with bash and zsh. My one tiny gripe is the way that if I

  set foo this that "the other"
then

  echo $faux; echo $faux[1]
doesn't produce anything, but

  echo $foo[4]
gives me an error message that I can't just pipe to /dev/null

Also, writing autocompletes for functions is both far simpler than in bash, but I'm also missing some of tools that bash provides.

Re: fish shell

#55

Earlier quoted context omitted.

Can you post your solution (or give a pointer)?

function fish_user_key_bindings bind \e. 'history-token-search-backward' end There is a thread about it here https://github.com/fish-shell/fish-shell/issues/89

Not successful yet on the Mac Terminal.app command line... Thanks anyway.

Re: fish shell

#56
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 just checked, for fun:

    $ ls -lh .bashrc
    -rw-r--r--    1              10k Jul 26 13:31 .bashrc
Yep.

It's also remarkably fast because I took great effort to optimize the parts that happen the most. Shell is actually pretty fast if you don't fork and exec all the time...

Re: fish shell

#57
post #19

Earlier quoted context omitted.

Do you know anyone with a 10k .bashrc?

I just checked, for fun: $ ls -lh .bashrc -rw-r--r-- 1 10k Jul 26 13:31 .bashrc Yep. It's also remarkably fast because I took great effort to optimize the parts that happen the most. Shell is actually pretty fast if you don't fork and exec all the time...

What do you have in it that takes up so much space? FYI: I'm not being argumentative, I am genuinely curious.

Re: fish shell

#58
Fish is a great interactive shell. I've been using it for some time now.

A few things I occasionally run into: You can't just paste somebodies setup instructions into your shell anymore (you can temporarily invoke bash for that though). And when writing setup instructions yourself, sh is still pretty much the standard. VirtualEnv generates an activate.fish out of the box - nice! I still occasionally type !grep by accident. And I do miss &&.

Re: fish shell

#60
I really liked fish, but as someone who is still learning bash/cli scripting, it makes things difficult when instructions from programs come only in Bash syntax, which does not work well with fish (some things with homebrew were an absolute nightmare to install).
Post reply on HN