-
|
I installed the shell completion into fish by following https://abhinav.github.io/git-spice/setup/shell/#fish, then tested the example command The completion results seem like they're identical, whether or not I have the shell completion installed. Am I missing something here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
@injust How did you install git-spice? |
Beta Was this translation helpful? Give feedback.
-
|
However, the original reporter is right that eval "$(gs shell completion fish)"is not a correct fish syntax. And I am not sure what is right: mitmanek~/r/p/python-lsp-server (orjson)$ git spice shell completion fish
function __complete_git-spice
set -lx COMP_LINE (commandline -cp)
test -z (commandline -ct)
and set COMP_LINE "$COMP_LINE "
/usr/libexec/git/git-spice
end
complete -f -c git-spice -a "(__complete_git-spice)"
mitmanek~/r/p/python-lsp-server (orjson)$ eval (git spice shell completion fish)
fish: Expected end of the statement, but found end of the input
mitmanek~/r/p/python-lsp-server (orjson)$ |
Beta Was this translation helpful? Give feedback.
@injust How did you install git-spice?
If you used
brew install git-spice, note that Homebrew does that setup for you.(We can probably mention that in the docs if that's the case.)