Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Johannes Altmanninger
@krobelus
alternatively, use something like bind \cg accept-autosuggestion for ctrl-g
Zev Averbach
@zevav_twitter

@krobelus thank you so much! on second glance it's in the tutorial here https://fishshell.com/docs/current/tutorial.html#autosuggestions.

For my own education, though, what do you mean by "readline for 'right-arrow'"? A quick Google only got me here -- https://unix.stackexchange.com/a/364532/128049 -- but it's not super clear to me.

Johannes Altmanninger
@krobelus
@zevav_twitter "readline" is a library for interactive commandline programs and it defines the ctrl-f shortcut by default (with the same meaning as the right arrow). So I just meant that in readline-speak they are synonyms
p00f
@chda:matrix.org
[m]

fish stackoverflows when i have

alias foo=ls
alias ls=foo

and enter one of foo or ls

bash and zsh just say "command not found"
should i open an issue?
Fabian Homborg
@faho
@chda:matrix.org It errors sensibly - it tries a few times and notices nothing's happening, so it stops. So there's nothing more for us to do, just don't do that.
It doesn't "stackoverflow" in the traditional sense that it blows its own stack and crashes, it "stackoverflows" in the sense that the script function recursion depth has been exceeded and so it prints an error and chugs along otherwise.
This is a sensible failure mode for something that logically has to fail, so it's okay. There is no bug in fish.
p00f
@chda:matrix.org
[m]
👍️
Claudio Mezzasalma
@lorthirk
Hey everyone! I'm trying out Fish, but I have an issue with HTTPie completion. I downloaded the httpie-completion.fish file from their repo, put it under ~/.config/fish/completions, renamed to http.fish but it doesn't seem to work. Am I missing something?
Fabian Homborg
@faho
@lorthirk The file needs to be named $thing.fish, where $thing is the exact name of the tool.
If the tool is called "httpie", then it needs to be "httpie.fish".
Ah, it actually installs as "http"?
Okay, it works for me. You're probably expecting it to do more than it does. It completes stuff like --print or --style=. Options and such. It still offers files for the most part, because they decided not to disable them.
This is more than the official bash completions do, btw.
Claudio Mezzasalma
@lorthirk
aw... yes, you're right. I was used to the Oh My Zsh plugin where there's a proper completion. fair enough then, at least I know I'm not doing anything wrong.
Aaron Gyes
@floam
@p00f if we ever implemented real aliases (pinning the resolution of command names to functions or certain paths), probably one should expect it to not get into the loop, but even that bash behavior isn't amazing. It doesn't explain what was wrong at all.
well, actually.
I take that back. What bash/zsh/ksh are doing are most right.
Aaron Gyes
@floam
or not.
this is what happens:
bash-3.2$ alias hostname=uname
bash-3.2$ alias uname=hostname
bash-3.2$ uname
Darwin
bash-3.2$ hostname
M1.local
they just invalidate apparently and the command goes through as entered.
hpfr
@hpfr:matrix.org
[m]
is it possible to choose a location for the cursor upon abbreviation expansion? I commonly use realpath -e (command -v $SOMECOMMAND) so I'd like to create an abbreviation that expands to realpath -e (command -v ) where the cursor is just before the closing paren. or can I create a function but still get $PATH-based autocomplete like with command -v?
Aaron Gyes
@floam
it is not possible to do that.
not with an abbreviation, at least.
David Adam
@zanchey
there's an issue tracking that
1 reply
hpfr
@hpfr:matrix.org
[m]
watched, ty
zetashift
@sp33der89:matrix.org
[m]
Quick noobie question, I know I can change the output of ls in bash with this: LS_COLORS="di=1;31" in fish would it be set -Ux LS_COLORS "di=1;31"?
Aaron Gyes
@floam
correct, that should work.
hpfr
@hpfr:matrix.org
[m]
was wondering why my vi cursor wasn't working, turns out the foot check is coming in the next release 👍️. but I noticed something weird, I saw the emacs check and was going to recommend narrowing it to term since vterm works fine with all the fancy terminal stuff. but the vi cursor works fine in emacs vterm, even though fish_vi_cursor only checks INSIDE_EMACS, which is set to vterm in vterm. this should cause it to exit, yet the vi cursor works fine somehow?
Aaron Gyes
@floam
foot check?
David Adam
@zanchey
bfedb3608f2
not to be confused with fit check
Aaron Gyes
@floam
TIL
jqharris
@jqharris
will you guys take PRs that trim down the documentation? it sometimes reads like a walkthrough posted on forums
Aaron Gyes
@floam
I have a commit in progress that has a lot of changes as far as the "you" stuff, I would avoid work on the docs until that lands
3 replies
but in general, sure
jqharris
@jqharris
it's like a high schooler did it
Fabian Homborg
@faho
@jqharris Could you... tone down your reaction a bit? I find that sort of talk rather insulting.
Aaron Gyes
@floam
pretty rude dude
image.png
that was meant for the thread with @faho.
Fabian Homborg
@faho
I hate how gitter does threads. Especially because viewed via matrix it looks totally differently.
Anyway, that change is okay. It's mostly the idea of going from "you" back to "the user" that I don't like.
This moves us further away from the hyper-correct standardese, which is a good thing.
Aaron Gyes
@floam
geez, I had a big grand vision for just "a couple" changes I want to make across the documentation, I spent a decent chunk of time and I made it to the letter c out of a-z.
doesn't help every rst file I open, I do a deep dive on the topic. ADHD I guess