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
Fish shell 2.1
111–120 of 154 posts
Re: Fish shell 2.1
#112With 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,…
As someone who has used an increasingly customized *nix command-line environment for decades, I'll say that this corner-case occupies a vanishingly small amount of my time. I just doesn't make sense to optimize for it. I currently use zsh, which is frequently not available by default. This implies installing a package, and I don't see how that's any worse for fish. I freely admit that my workflow as a developer vs. (e.g.) a sysadmin provides a greater degree of relative control over my day-to-day working environments.
I do have to work in non-customized environments from time to time. I find this no worse than using Someone Else's Keyboard -- maybe there's some clumsiness at first, but you soon get the hang of it. If you switch environments frequently, the switch becomes unnoticeable.
That said, I've also put continual effort into portability and ease of deployment of my customizations over the years. I can run one command on a networked host and have my rcfiles land there and be ready to use. This is pretty easy to do with a git-managed homedir repo, especially on a provider like GitHub where you can fall back to grabbing tarball if needed. I currently use vcsh[1] & mr[2] to manage my repos -- for that I use a bootstrap script hosted in an orphan branch of the same repo.[2] An efficient setup process of this type also makes it easy to integrate with provisioning tools, e.g. Puppet, Chef, or even just shell scripts.
[1] https://github.com/RichiH/vcsh
Re: Fish shell 2.1
#113With 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,…
Re: Fish shell 2.1
#114Thank you for your wonderful shell!!! I feel the lack of official distro packages (though the fish shell repository works fine)
Thanks for your feedback. Let me just pinpoint it to other users that from this release you can now subscribe to fish shell's repositories by following instructions at http://fishshell.com/files/2.1.0/linux/index.html
Re: Fish shell 2.1
#115Earlier quoted context omitted.
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
#116This is the biggest change: > http://fishshell.com/release_notes.html > When tab-completing a file, fish will first attempt prefix matches (foo matches foobar), then substring matches (ooba matches foobar), and lastly subsequence matches (fbr matches foobar). For example, in a directory with files foo1.txt, foo2.txt, foo3.txt…, you can type only the numeric part and hit tab to fill in the rest. This is really brillia…
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
Re: Fish shell 2.1
#117This is the biggest change: > http://fishshell.com/release_notes.html > When tab-completing a file, fish will first attempt prefix matches (foo matches foobar), then substring matches (ooba matches foobar), and lastly subsequence matches (fbr matches foobar). For example, in a directory with files foo1.txt, foo2.txt, foo3.txt…, you can type only the numeric part and hit tab to fill in the rest. This is really brillia…
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
Re: Fish shell 2.1
#118Earlier quoted context omitted.
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 th…
I don't think we are disagreeing. From the tutorial in the OP: "If you have a strong understanding of other shells, and want to know what fish does differently, search for the magic phrase unlike other shells , which is used to call out important differences." "stdin and stdout can be redirected via the familiar . Unlike other shells , stderr is redirected with a caret ^" That's pretty, no argument there. But I alrea…
Re: Fish shell 2.1
#119The only problem I had was getting all vim plugins to work with it, but then I discovered that you can set the shell vim shall use in .vimrc (I set it to sh) and now everything works like a charm.
BTW, I'm loving the fuzzy autocompletion, it's truly a "killing feature".
Re: Fish shell 2.1
#120Upside is I know bash ins and outs :). I'm usually the one-liner wizard of the office.