Replies: 1 comment 3 replies
-
BackgroundShell completion solutions have different ways of being loaded. What is common to all of these solutions, with regard to completion, is the loading of helper functions in the shell session (that's the code you saw being generated) Each shell has a documented startup process. zsh starts by sourcing
The simplest way (although not necessarily the most effective one) would be to source (meaning loading the script's code into the session, as opposed to running the script). You can (A) dump the output to a file and source that file, or (B) generate the source on the fly while the shell is initializing. (A) will be more performant, while (B) will be more dynamic (in case zellij updated, it will automatically load the 'new code'). But what does this all MEAN ?!If you got with (A), you will first dump the completion into a script file: $ zellij setup --generate-completion zsh > ~/zellij-completion.src And then in . $HOME/zellij-completion.src if you go with option (B), at the end of . <(zellij setup --generate-completion zsh) |
Beta Was this translation helpful? Give feedback.
-
Following the docs I ran:
which dumps a large script to my screen. Where am I supposed to place this ?
The docs only say:
I realize someone more knowledgeable might know where to find the relevant info, but I'd appreciate some further guidance. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions