-
Notifications
You must be signed in to change notification settings - Fork 9
Tab completion doesn't work #10
Comments
There are currently some issues with my plugin, so tab completion will not work properly anyway. However, your problem clearly is related to the absence of sdkman in your path. |
Ok, thanks for the quick reply. I am afraid that I won't be able to open PR since my zsh plugin knowledge from writing perspective is quite limited. But if you know any good resources I would be eager to learn. In terms of these initialization lines which I am missing. I would like this plugin to work similarly to zsh-nvm or zsh-rbenv. They require user to only add plugin to zshrc and all the work is done under the hood. Similarly this plugin could assume that by default the installation directory of sdk-man is Or even better - assume that default directory is WDYT? |
Most zsh plugins assume your install is done correctly, and display an error message on terminal launch if this is not the case. So I think your idea of assuming ~/.sdkman is the default install folder is a good one, I'll try to implement that when I have some time. About resources, I think the best way is to read existing plugins and learn from them. Begin with simple plugins, try to tweak them yourself, and then go to more complex plugins: git and docker zsh plugins for example, which are really complex and offer a lot of features. If you're not familiar with bash: https://www.tutorialspoint.com/unix_commands/bash.htm (Zsh is a bit different but you'll get the general idea). |
Hi,
When I hit
<tab>
after writingsdk
I get:sdk (eval):1: command not found: _sdkman
Here is my zsh configuration: https://github.com/ghostbuster91/dot-files/blob/zplug/.zshrc
And just to make sure, do I need to add to .zshrc following lines
??
The text was updated successfully, but these errors were encountered: