-
-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZSH completions don't work #4114
Comments
Thanks for the report! We totally rewrote tab completion support. Please remove any code related to
Does it work now? |
@ivankravets yes, it looks like it working, thanks! |
Looks that for |
These options are global per any |
On MacOS Monterey, using bash, I get:
|
@jcw Latest macOS versions do not have |
I'm used to bash, so I've changed my login:
It's an old one, clearly (due to licensing issues). I have no PS. Yes, latest dev of PIO. No big deal, just wanted to flag this. |
@jcw This is not our limitation, we use Python's Click library. It seems they don't have support for older than 4.4 Bash version. P.S: Highly recommend to check Fish shell, I've been using it for the last 5 years. Crazy cool. |
Ok, will do, Ivan :) - I've tried Fish long ago, but will revisit - the point is that I regularly log onto servers and RasPi's. Having bash on all of 'em simplifies my life a little. |
You can change the default shell at these devices as well (see |
Heh, I knew you'd say that. Sure, I could (and might), but a little bit of pushback is in order here, IMO: a tool such as PIO should be invariant w.r.t. shell choice (just as it is to editor choice, platform choice, etc). I understand that in this case it's beyond your control, and as I said: no big deal for me (I use short aliases for some key PIO cmds). |
I did a "pio system completion install --shell zsh", and when I enter "pio" and hit tab, nothing is completed.
It's installed:
❯ grep -A 10 "compdef pio" .zshrc$(env COMMANDLINE="$ {words[1,$CURRENT]}" _PIO_COMPLETE=complete-zsh pio)
#compdef pio
_pio() {
eval
}
if [[ "$(basename -- ${(%):-%x})" != "_pio" ]]; then
compdef _pio pio
fi
Versions:
❯ pio --version
PlatformIO Core, version 5.2.4a4
❯ zsh --version
zsh 5.8 (x86_64-pc-linux-gnu)
❯ uname -a
Linux /hostname/ 5.15.2-arch1-1 #1 SMP PREEMPT Fri, 12 Nov 2021 19:22:10 +0000 x86_64 GNU/Linux
❯ python --version
Python 3.9.7
Note:
❯ env COMMANDLINE="pio" _PIO_COMPLETE=complete-zsh pio
outputs nothing.
The text was updated successfully, but these errors were encountered: