Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 23:36
    krobelus commented on 83fd7ea
  • 23:35
    krobelus commented on f167ec9
  • 23:33
    mqudsi commented on 83fd7ea
  • 23:29
    mqudsi commented on f167ec9
  • 23:17
    mqudsi commented #9544
  • 23:16
    mqudsi commented #9544
  • 22:59
    Xiretza opened #9544
  • 22:33

    mqudsi on master

    completions/apt: Use is_first_t… completions/apt: Read from the … (compare)

  • 22:25
    zhangda0221 starred fish-shell/fish-shell
  • 21:54
    raymondedwards95 starred fish-shell/fish-shell
  • 20:31
    albertoridolfi starred fish-shell/fish-shell
  • 20:08
    ClementNerma starred fish-shell/fish-shell
  • 19:16
    bagohart synchronize #9543
  • 16:42
    esdmr commented #9542
  • 16:40
    esdmr ready_for_review #9542
  • 16:31
    esdmr commented #9542
  • 16:29
    esdmr edited #9542
  • 16:29
    esdmr commented #9542
  • 16:27
    esdmr synchronize #9542
Fabian Boehm
@faho
See https://fishshell.com/ for PPAs. With that awkward version (not even 3.1.2) you're probably using Ubuntu, we have ones for that.
rp-karanth
@rp-karanth

Please help with powerline. I am using Ubuntu 20.04.3. I have powerline installed but fish says it isn't. Unable to use any powerline based prompts.

This is output of pip3 show powerline-status

Name: powerline-status
Version: 2.7
Location: /usr/lib/python3/dist-packages/
Requires: 
Required-by:

My config contains

set fish_function_path $fish_function_path "/usr/share/powerline/bindings/fish"
source /usr/share/powerline/bindings/fish/powerline-setup.fish
powerline-setup

echo $fish_function_path
does show /usr/lib/python3/dist-packages/powerline/bindings/fish /usr/share/powerline/bindings/fish

Update:
After performing below step the message that install powerline isnt appearing, but situation remains same.

the /usr/lib/python3/dist-packages/... didnt had fish directory and powerline-setup.fish file; I copied it from /usr/lib/python3/dist-packages/powerline/bindings/fish/powerline-setup.fish using sudo cp

What is that I am missing.

Fabian Boehm
@faho
@rp-karanth You'll have to add the directory the powerline executable is in to your $PATH. The documentation recommends symlinking to your ~/.local/bin, if you've done that you need something like fish_add_path ~/.local/bin.
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 Fong
@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 Fong
@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"?