Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 01:50
  • Dec 04 22:41
    KatzeMau starred fish-shell/fish-shell
  • Dec 04 22:18
    goude commented #328
  • Dec 04 21:51
    kfrncs commented #5699
  • Dec 04 21:10
    github-actions[bot] locked #7304
  • Dec 04 19:09
    github-actions[bot] locked #7301
  • Dec 04 18:01

    faho on master

    string match: Only import varia… (compare)

  • Dec 04 17:54
    faho commented #7495
  • Dec 04 17:15
    faho commented #7216
  • Dec 04 17:14
    faho closed #7216
  • Dec 04 16:13
    faho commented #7523
  • Dec 04 16:08

    faho on master

    Webconfig: Support reading term… Webconfig: Let theme match help… Webconfig: Fix error message F… and 2 more (compare)

  • Dec 04 16:08
    faho closed #7523
  • Dec 04 16:08
    faho synchronize #7523
  • Dec 04 16:07
    faho synchronize #7523
  • Dec 04 16:03

    faho on master

    CHANGELOG: Add some of the rece… (compare)

  • Dec 04 15:48
    faho commented #7526
  • Dec 04 15:47
    faho closed #7521
  • Dec 04 15:47
    faho closed #7526
  • Dec 04 15:47

    faho on master

    Revert "Attempt to simplify how… __fish_print_packages: Better p… (compare)

Ilan Cosman
@IlanCosman
No it's not possible right now @sshaikh
ridiculousfish
@ridiculousfish
@mojotx I'll fix the tilde completion regression, thanks for the report!
Jorge Bucaran
@jorgebucaran
Anyone know why this error might be happening on Linux:
curl: (23) Failed writing body (346 != 4220)

Am I using curl incorrectly? There's no .curlrc file. This is the code:

if ! command curl --progress-bar --location $url \
  | command tar --extract --gzip --directory $nvm_data/$ver 2>/dev/null
  # ...
end

The odd thing is that nothing appears to break. The file at $url is being downloaded and passed to tar and the result is what we expect, which is downloading and extracting a node tarball.
https://github.com/jorgebucaran/nvm.fish/pull/123/files#diff-06bbe89bf94e0cc88c713d1245fd926f04787f4e3522e98ecd24086acef52d14R75-R76

Fabian Homborg
@faho
@jorgebucaran Googling "curl: (23) Failed writing body" yields https://stackoverflow.com/a/28879552/3150338 - TL;DR: tar apparently closes the pipe when it's done.
Jorge Bucaran
@jorgebucaran

Thanks, @faho. I guess I'll just send the error to /dev/null then.

By the way:

Something I learned recently and I thought was amazing - you can create sockets straight from your shell! Well, assuming you use bash or zsh - from some surface level digging, I couldn’t find anything for fish.

https://who23.github.io/2020/12/03/sockets-in-your-shell.html

Fabian Homborg
@faho
That's one of those "god no" features
Jorge Bucaran
@jorgebucaran
:laughing:
David Adam
@zanchey
I think we had an issue open about it
seems like a bad plan to me
Fabian Homborg
@faho
Yeah, as best as I can tell its main use is for writing blog posts about it.
Édouard Lopez
@edouard-lopez
I'm looking at fish_git_prompt doc and its implementation and wonder why nothing has been made available to end-user? Everything would be computed before displaying the next prompt
Fabian Homborg
@faho
@edouard-lopez If you can figure out how to properly separate everything, sure. That's a bunch of work, especially if you want to do it without recomputing everything five times.
Or having to call everything in a very specific order.
Jorge Bucaran
@jorgebucaran
Is it safe to do (math $number % 2) now? It seems so.
Will it work with 3.0 as well?
Fabian Homborg
@faho
@jorgebucaran Yes.
Jorge Bucaran
@jorgebucaran
Yay
Fabian Homborg
@faho
A quick stroll through the git log confirms that nothing related to modulo has happened since 3.0
Jorge Bucaran
@jorgebucaran
I thought % would break in older versions because % was a special character?
Maybe my memory is bad.
My bad, it's probably my memory then.
Fabian Homborg
@faho
Ah, you mean %-expansion? I don't think that ever happened without a string, and it was removed in 3.0.
Jorge Bucaran
@jorgebucaran
Awesome.
Joaquín Meza
@waterquarks
Hello! How do I enable tab complete for Docker?
matrixbot
@matrixbot
Nate What?
Nate Sorry
Max
@owarai

hello! I have a problem when using tab completion.

If the target path start with '~', when I select from tab completion items, a backslash
always be added to the begining of the target dir.

like cat ~/.config/{press tab and select} will lead to cat \~/.config/xxx.

I unlink all my fish configs from dotfile repo to stay with defaults.
And reinstalled fish, so only fish_variables file in ~/.config/fish/. But nothing changes.

I don't have this problem when create a virtual machine, install a fresh fish-shell and use fish in it.

Is there anyone have some clue? Thanks(fish version: HEAD 720982).

Fabian Homborg
@faho
@owarai #7526
Fabian Homborg
@faho
@waterquarks Docker ships the fish completions upstream, your distribution should already be installing them in the correct place.
So it should all work automatically, if it doesn't something is misconfigured or they expect you to install it manually.
If this is on mac you need to symlink them manually - see https://docs.docker.com/docker-for-mac/#fish-shell
Édouard Lopez
@edouard-lopez
I see no completion for the github CLI is there work in progress? https://github.com/cli/cli
Fabian Homborg
@faho
@edouard-lopez None that I'm aware of.
They use some go completion generation framework - https://github.com/cli/cli/blob/091d550cdebf83864398f15f5cc90c9f25e67c06/pkg/cmd/completion/completion.go. That supports fish as well, no idea if the output is any good.
Édouard Lopez
@edouard-lopez
I got nothing on my machine :/
Fabian Homborg
@faho
@edouard-lopez Run gh completion -s fish.
Jorge Bucaran
@jorgebucaran
Is there a way via completions to make: nvm rm turn into nvm uninstall via tab, but without creating key bindings?
Basically, I want my command nvm, to let me type nvm rm and when I hit tab become nvm uninstall, which is the actual command (rm is not a valid command).
I could add rm support, of course, but I was wondering if there's a way to do that thing I said above. I suppose this is a little weird, but is it possible?
Jorge Bucaran
@jorgebucaran
Okay, I came up with this:
complete -c nvm --exclusive --condition "
    set -l buffer (commandline)
    if test \$buffer = nvm\ remove
        commandline --replace nvm\ uninstall
    end
"
but it makes the terminal ring when the command line is replaced. Anyway to prevent that?
(it rings because there's no completions for nvm remove, just like it would ring for nvm foobarbaz+<Tab>)
Fabian Homborg
@faho
No.
This is not something completions are supposed to be used for
Jorge Bucaran
@jorgebucaran
That bell is annoying haha.
But your answer makes sense.
This is a "user problem" (I am the user) so I could just use abbr I guess.
Édouard Lopez
@edouard-lopez
@faho Thanks, works like a charm:
gh completion --shell fish > ~/.config/fish/completions/gh.fish