mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-27 00:25:53 +03:00
[GH-ISSUE #1005] error when adding Completions #447
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-tui#447
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @chrisgrieser on GitHub (Jul 30, 2022).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/1005
First of all, thank you for this fantastic app!
I was trying to add completions for the CLI. The help page only mentions
spt --completions zsh, so I assume you add completions just like with other CLIs by usingeval. However, when I try to run that, I get:I couldn't find any info in the readme or help page indicating that completions have to be added differently?
@OrangeFran commented on GitHub (Sep 23, 2022):
Try adding the completions output to a location in your
$fpath.And the use
autoload -U compinit && compinitto load the completions.@henderjm commented on GitHub (Dec 21, 2023):
just because it was also my first time consuming bash completions like this. I created a new folder in my home directory .bash_autocompletions/ and added it to my $fpath.
I then put the output into a file and most importantly name it the same as the executable and prefix it with an underscore! Don't be dumb and call it spotify-tui
add to your bash dotfile in my case .zshrc
refresh and you should see it working as expected.
@chrisgrieser commented on GitHub (Dec 21, 2023):
Right, that was actually it, forgot to close the issue afterwards.