Live data from Hacker News

Fish shell 2.1

fishshell.com

91–100 of 154 posts

Re: Fish shell 2.1

#91
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,…

ZSH user here, with plenty of custom additions to it. For me it's not about building a parallel universe - it's about using tools at hand to make my life easier. Whether it be giving me information that I want, when/where I want it, or saving a few tens or dozens of keystrokes, it all comes down to the same thing.

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

I can't answer for other people, but when I am logging into other systems I am very seldom performing the same tasks that I do on my development workstation. I don't need those customizations because I'm not doing the kinds of things that require them.

So when I log into another system, I just use it. I don't try to do the things that I can do on my local system - maintaining awareness of the differences is not a challenging thing.

Re: Fish shell 2.1

#92
post #34

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

This is what the arrow-up key in ZSH does by default.

On my box, zsh only searches based on the first word. Other options, in comments above, search on multi words. For example "git push" then up arrow works expected.

Re: Fish shell 2.1

#93
post #63

Can you split windows in fish shell? Or is that the job of an terminal emulator, not the job of a shell?

No. It's just a shell. Just use tmux or screen for that, which is better idea anyway, as it's a tool specificially for this purpose.

Re: Fish shell 2.1

#94
I installed 2.1 via homebrew and now, every time I open a new terminal window, I get:

    bind: Key with name 'dc' does not have any mapping
    bind: Key with name 'ppage' does not have any mapping
    bind: Key with name 'npage' does not have any mapping
Does anybody have any idea what causes this / how to fix it?

Re: Fish shell 2.1

#95
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,…

When I need to use my configurations in other computers, and it's something more difficult than copying a file, I put them online so I can install then with a curl + sh command. But that has happened exactly once. Usually I just need to copy and paste one file.

Re: Fish shell 2.1

#96
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,…

If by customization you mean changing key bindings, prompts, colors, adding new functions, well, you can change that.

If by customization you mean setting what happens when you write invalid glob, how much you can store in the history, whether prompt beeps on error, whether integers starting with 0 are octal, what regular expression engine is used, and so on, feel free to use zsh - it's great, really, after you configure everything, that is - fish shell won't let you change that by design. This is not a flaw - author believes that configuration is the root of all evil (and I agree with him).

Re: Fish shell 2.1

#97
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 am not convinced.

How much time can I spend on customizing something to be more convenient and still save time in the long run? Can I spend half an hour to speed up a task I do daily by five minutes? Can I spend a month learning Emacs and save time in the long run? Can I spend two weeks learning how to touch-type?

The answers invariably are very much dependent on your personal work. But to me, the far more important question is:

Can I do anything that makes my life more pleasant? To me, personally, fish really improves my enjoyment of terminal usage. Productivity does not even enter this equation, but I suspect that I work faster when I am happy. I in fact do use fish, and Emacs, for the simple reason that I enjoy using them. I might be more productive with other tools, but I would not enjoy my work as much.

So yes, it is a matter of love. Do what you love, not what pays best.

Re: Fish shell 2.1

#98
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 am not convinced. How much time can I spend on customizing something to be more convenient and still save time in the long run? Can I spend half an hour to speed up a task I do daily by five minutes? Can I spend a month learning Emacs and save time in the long run? Can I spend two weeks learning how to touch-type? The answers invariably are very much dependent on your personal work. But to me, the far more importan…

Actually, that's a calculate-able thing, and Xkcd has already saved us the time: http://xkcd.com/1205/

Re: Fish shell 2.1

#99
post #68
post #59

Earlier quoted context omitted.

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…

I'm kind of posting too much so I'll stop, I really tried to phrase my questions in a friendly manner but it seems they invite misreadings. Apologies. One final clarification: I agree with this attitude if indeed this was the case. I don't see how zsh or fish constitute cordless drills and screwdrivers, it feels more like they are the right-y version to the left-y version of the regular screwdriver. But maybe its bec…

Keep in mind also that no matter how civilly you phrase things, your still talking about the "religion of tools" which may draw strong responses to otherwise nice questions.

Re: Fish shell 2.1

#100
post #35

Earlier quoted context omitted.

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.

I'm using https://github.com/zsh-users/zsh-history-substring-search

It emulates the Fish behavior (which is just awesome). I'm not sure if it requires oh-my-zsh, but I think it doesn't.

Post reply on HN