Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 11:58
    goransle starred fish-shell/fish-shell
  • 08:07
    yevmel starred fish-shell/fish-shell
  • 03:32
    KrLite starred fish-shell/fish-shell
  • 02:12
    anakimluke opened #9511
  • Jan 27 19:38
    yellowmint starred fish-shell/fish-shell
  • Jan 27 16:08

    faho on master

    fish_key_reader: Don't translat… (compare)

  • Jan 27 16:05
    faho demilestoned #5791
  • Jan 27 15:59
    faho closed #5791
  • Jan 27 15:59
    faho commented #5791
  • Jan 27 15:58
    faho demilestoned #5
  • Jan 27 15:58
    faho milestoned #5
  • Jan 27 15:58
    faho closed #5
  • Jan 27 15:58
    faho commented #5
  • Jan 27 14:07
    pkstDev starred fish-shell/fish-shell
  • Jan 27 13:57
    TibiNonEst starred fish-shell/fish-shell
  • Jan 27 12:23
    xaver985 starred fish-shell/fish-shell
  • Jan 27 11:58
    faho demilestoned #3835
  • Jan 27 11:58
    faho closed #3835
  • Jan 27 11:58
    faho commented #3835
  • Jan 27 11:56
    faho demilestoned #3825
rp-karanth
@rp-karanth
Well this is odd. I am not seeing the command fish_add_path at all? I remember using it a week ago. What should I do
Emily Grace Seville
@EmilySeville7cfg
How to force complete not to insert space after option insertion? For instance I wanna to write completions for options use : instead of space to separate values: complete --command mcs --old-option warnaserror: --old-option warnaserror+: --description 'Treat warnings as errors'.
Fabian Boehm
@faho
@rp-karanth Upgrade fish. fish_add_path has been available since fish 3.2.0. See https://fishshell.com/ for PPAs if you need them.
@EmilySeville7cfg You currently don't. Fish has a hardcoded list of characters that it won't insert a space after. See #7832.
Emily Grace Seville
@EmilySeville7cfg
Thanks ;)
Kevin
@kn100
Hi, I have a bit of a vague question, but I am mainly looking for places to look to see about this issue. No matter what directory I am on in my system, my system prompt displays "ruby". I have absolutely no idea why, but I am certain I have misconfigured something. Anyone have any suggestions on where to look?
David Adam
@zanchey
@kn100, sounds like something in your prompt? your username or machine name?
schuelermine
@schuelermine:matrix.org
[m]
Is it intentional that the stderr output of things inside brackets isn’t redirected by 2>&1?
$ echo -s x (echo x >&2; echo x) 2>&1 | string length
x
2
schuelermine
@schuelermine:matrix.org
[m]
Can I redirect anyway?
Peter Ammon
@ridiculousfish
Yes redirections do not apply to command substitutions. You'll have to redirect inside the command substitution.
schuelermine
@schuelermine:matrix.org
[m]
Is string collect -N supposed to add newlines?
Fabian Boehm
@faho
@schuelermine:matrix.org Outside of command substitutions, all string subcommands currently add newlines, yes.
This doesn't affect it inside of one, try echo -n (echo -n 1 | string collect -N).
schuelermine
@schuelermine:matrix.org
[m]
I see
Fabian Boehm
@faho
(this is #3847)
schuelermine
@schuelermine:matrix.org
[m]
Nice to know
schuelermine
@schuelermine:matrix.org
[m]
Why does fish have a file descriptor for its own file descriptor directory?
Fabian Boehm
@faho
@schuelermine:matrix.org It has an fd for its current working directory.
schuelermine
@schuelermine:matrix.org
[m]
Ah, I see
that makes sense
thank you
Amos Bird
@amosbird
Hello! How can I kill all background jobs in fish?
It seems kill (jobs -p) does the job
Emily Grace Seville
@EmilySeville7cfg

What about to introduce any environment variable to control what completions are allowed to do and what not? For instance when this variable ($fish_disable_smart_complete or another name) is not set nothing changes (for backward compatibility) and otherwise:

  • --condition complete option is not allowed because potentially it can run for a long time
  • command substitutions are not allowed in --arguments for the same reason

What do you think about it?

Fabian Boehm
@faho
@EmilySeville7cfg There's no real need for it and it's rather complicated. If completions are too slow, make them faster. We try not to introduce configuration options.
This would also be a global option for all completions, which would break completions that are fast enough just because some others aren't.
expandingman
@expandingman:matrix.org
[m]
hello all... I'm finding it surprisingly difficult to run a detached process and save the PID... I'm trying to do something like eval $cmd &; echo $last_pid but this really, really does not seem to want to work...
Fabian Boehm
@faho
@expandingman:matrix.org Fish can't background functions and builtins, this includes eval.
expandingman
@expandingman:matrix.org
[m]

that wasn't my issue, actually I figured it out: the command I was trying to run was all in one string, I needed to string split it an additional time.

Unfortumately this didn't solve what seems to be a much deeper problem of Xorg absolutely not wanting to do what I'm trying to do here lol

having to use the

set cmd (echo original command here)
$cmd &

pattern is a little awkward, but it works

andrewsh
@andrewsh:matrix.org
[m]
I noticed the new fish breaks compat with mc, is it just me or has someone else seen that?
Fabian Boehm
@faho
@andrewsh:matrix.org It's an mc bug - it tries to extract the first line of the prompt and is overly simplistic in doing so. https://midnight-commander.org/ticket/4258
andrewsh
@andrewsh:matrix.org
[m]
wow, 5 months and no fix?
Fabian Boehm
@faho
You'll have to talk to the mc people about that.
Fabian Boehm
@faho
Sometimes bugs happen, and sometimes nobody gets around to fixing them for a while, especially in a volunteer-driven project.
The only sure way to get a bug fixed now is to do it yourself.
andrewsh
@andrewsh:matrix.org
[m]
yeah, I guess
I have for now downgraded fish back to the version where it works
andrewsh
@andrewsh:matrix.org
[m]
anyway, added the details to the Debian bug report, hopefully the maintainer can have a look and figure something out
@faho: thanks!
Patrick
@PatrickF1
Why do these both output the same thing? According to my understanding of character escapes in single quotes, the \$ should result in no regex backreferencing happening
$ string replace -r '(\w+)\s+(\w+)' '$2 $1 $$' 'left right'
right left $
$ string replace -r '(\w+)\s+(\w+)' '\$2 \$1 $$' 'left right'
right left $
Fabian Boehm
@faho
@PatrickF1 #5474 - unfortunately string replace has a superfluous round of unescaping in the replacement part so you'll have to double up the slashes one more time. There's no great way of fixing it so we've introduced a feature flag until we figure out how to detect it and warn about it.
Patrick
@PatrickF1
Hi @faho , thanks for your reply. Why does string replace do a superfluous round of unescaping for the replacement part?
btw https://fishshell.com/docs/current/language.html#future-feature-flags says "round of escaping", but that should read "round of unescaping right"?
Fabian Boehm
@faho
Please read the linked issue. It was simply a mistake in the original implementation.
"un"escaping is a pretty technical term, it's when you turn $ into "expand this" and \$ into $. If it does too much unescaping that means you need more escaping. I do not believe this subtlety helps any in the explanation, so we've left it as "escaping".
Peter Ammon
@ridiculousfish
fish shell is on the orange site once again, lots of nice comments about it