Live data from Hacker News

Fish shell 2.1

fishshell.com

51–60 of 154 posts

Re: Fish shell 2.1

#51
post #22

With love: I always felt like fish and even zsh are kind of beautiful OCD-induced bouts of counter productivity in the same vain as Dvorak keyboard layouts and Plan 9. We can't handle things being messy and imperfect so we solve it by building our own parallel universes. What do you do when you have to use a computer without your customization? Perfect is the enemy of good, worse is better, join us on the dark side,…

Are we going to use sh and its descendants for the next 100 years? The original shells evolved out of macro processors, and as time went on, more and more programming language features were bolted on, but it's an uneasy fit.

Take it for a test: go write a project euler problem (or any small programming task--doesn't have to be math) in your shell of choice. It's painful.

There are weird features of shell languages that will never go away (globs and unquoted strings sharply limit the design space), but even given those limitations, it's possible to design nicer languages.

I don't fault someone for saying "right now, I'd rather use the default shell my box comes with, because the pain points of switching are too high". But yes, we really do need something to replace it. I think both zsh and fish make nice steps, but I don't think either really meets my hopes.

Re: Fish shell 2.1

#52
post #15

I am currently running fish version 2.0.0 (Love it btw!) - does anyone know if there is a way to manually self update to 2.1? Or do I need to reinstall the package.

What OS are you using ? If you are on Linux, you can subscribe to our repositories from http://fishshell.com/files/2.1.0/linux/index.html and update your package.

On OSX.

Re: Fish shell 2.1

#53
post #29
post #27

Earlier quoted context omitted.

What do you do when you have to use a computer without your customization? Uh, by that logic I would only use notepad.exe.

Yes, that would be the other extreme -- just like fish, in the opposite direction. I'm thinking there's a happy medium. But maybe this isn't such a problem, note I prefaced my comment 'with love'. I'm asking, not telling.

As a zsh user, I am not really seeing the problem. Even Solaris had zsh in the default install. I don't see why avoiding installing an rpm/deb is any better or worse than not.

For regular shell scripts I tend to still prefer #!/bin/ksh and not bourne shell (no bash is not bourne shell).

I have to admit the line of thinking you're advocating reminds me of the vim/emacs "wars". With the "vim is on ALL THE SERVERS", well yeah but unless i'm at a serial console thats not all that convincing as a TRAMP user. I customized tramp so I could edit files remotely through sudo. What do I care about the version vim installed on the servers?

Re: Fish shell 2.1

#54

Earlier quoted context omitted.

I am looking for something that lets me type the first few letters and when I press the arrow-up key then (maybe in combination with another key), it will only offer those items from the history, which match my previous input. Something like: Type: > ssh press arrow-up: > ssh larry@google.com press arrow-up: > ssh mark@facebook.com

bash: "\C-p": history-search-backward in ~/.inputrc

Or in .bashrc:

bind "C-p":history-search-backward

bind "C-n":history-search-forward

Re: Fish shell 2.1

#56
post #35

Earlier quoted context omitted.

I am looking for something that lets me type the first few letters and when I press the arrow-up key then (maybe in combination with another key), it will only offer those items from the history, which match my previous input. Something like: Type: > ssh press arrow-up: > ssh larry@google.com press arrow-up: > ssh mark@facebook.com

oh-my-zsh[1] does that for me. It's a pretty great function. 1. https://github.com/robbyrussell/oh-my-zsh

The history-beginning-search-backward widget, which is standard to the zsh line editor, does it. You don't need to pull in all of oh-my-zsh.

To use it, I use:

  bindkey "^[[A" history-beginning-search-backward

Re: Fish shell 2.1

#57
post #48
post #9

Earlier quoted context omitted.

Exporting variables is simple: set -x #{NAME} #{value}; setting Go environment is simple too: set -x GOPATH $HOME/go set -x PATH $GOPATH/bin $PATH

I actually have an even more complete version of this which allows changing the Go shell cleanly. Dump https://gist.github.com/bpollack/7197532 in your .config/fish/functions directory and you should be good to go.

sweet :) thx

Re: Fish shell 2.1

#58

Installing fish instead of bash was the biggest single productivity improvement that I've ever done. Thanks for your work!

Could you give a little insight into what you liked/disliked about it?

Re: Fish shell 2.1

#59
post #22

With love: I always felt like fish and even zsh are kind of beautiful OCD-induced bouts of counter productivity in the same vain as Dvorak keyboard layouts and Plan 9. We can't handle things being messy and imperfect so we solve it by building our own parallel universes. What do you do when you have to use a computer without your customization? Perfect is the enemy of good, worse is better, join us on the dark side,…

I really don't think that zsh is born of some desire to keep things from getting messy. That doesn't seem to be what it does in practice anyway, particularly with the popularity of things like oh-my-zsh. Rather I think zsh is born from a desire to have more. More functionality and more customization options.

> What do you do when you have to use a computer without your customization?

How are people running into this situation so often? I don't sit down at my coworkers desks and start using their accounts. On production servers, I still have zsh and although some of my custom utilities are missing, it is not like I am somehow crippled by their absence.

This concern is like being opposed to cordless drills and screwdrivers because "what would happen if you found yourself with only a regular screwdriver?" ...well, what of it? If I found myself inexplicably with only a regular screwdriver, I would use it. Not a big dea. It's not like zsh users turn into blithering idiots as soon as they don't have their fancy PS1 set and are missing a few completion options.

Re: Fish shell 2.1

#60
post #35

Earlier quoted context omitted.

I am looking for something that lets me type the first few letters and when I press the arrow-up key then (maybe in combination with another key), it will only offer those items from the history, which match my previous input. Something like: Type: > ssh press arrow-up: > ssh larry@google.com press arrow-up: > ssh mark@facebook.com

oh-my-zsh[1] does that for me. It's a pretty great function. 1. https://github.com/robbyrussell/oh-my-zsh

Im using oh-my-zsh, but I cant find this one. Care to enlighten me which option or plugin I should enable? :)

Edit: Seems ctrl-up and ctrl-down does the trick.

Post reply on HN