-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Autocompletion with zap
package manager
#78
Comments
Zsh-z adds its own directory to |
Thank you, that works: # .zshrc
[ -f $HOME/.local/share/zap/zap.zsh ] ||
zsh <(curl -s https://raw.githubusercontent.com/zap-zsh/zap/master/install.zsh)
source $HOME/.local/share/zap/zap.zsh
ZSHZ_CMD=f # I have an alias z=fg
plug agkozak/zsh-z
zstyle ':completion:*' menu select # optional
autoload -Uz compinit
compinit Now I will remember that loading plugins comes first. |
Update: If I put |
Could you send me the exact |
Apparently this it has something to do with zap-zsh/completions. Because I shrank down my config and the noticeable loading time is still there. Loads pretty fast: [ -f $HOME/.local/share/zap/zap.zsh ] ||
zsh <(curl -s https://raw.githubusercontent.com/zap-zsh/zap/master/install.zsh)
source $HOME/.local/share/zap/zap.zsh
ZHOME=${ZDOTDIR:-$HOME}
HISTFILE=$ZHOME/.history.zsh
HISTSIZE=1000000000
SAVEHIST=1000000000
ZSHZ_CMD=f
plug agkozak/zsh-z
autoload -Uz compinit
compinit
plug zap-zsh/completions Loads very slow: [ -f $HOME/.local/share/zap/zap.zsh ] ||
zsh <(curl -s https://raw.githubusercontent.com/zap-zsh/zap/master/install.zsh)
source $HOME/.local/share/zap/zap.zsh
ZHOME=${ZDOTDIR:-$HOME}
HISTFILE=$ZHOME/.history.zsh
HISTSIZE=1000000000
SAVEHIST=1000000000
plug zap-zsh/completions
ZSHZ_CMD=f
plug agkozak/zsh-z
autoload -Uz compinit
compinit So in this config, the plugin order matters (if you value your time). P.S. I'm basically still a beginner to all the cool zsh stuff. But I'm nearly an expert at POSIX sh or Bash scripting, well at least I used them (still am) for several years in terminal and scripts every day. But zsh config file is nothing like bash, therefore I almost blindly copy and paste some lines and hope that they would work. |
2 more points:
This has nothing to do with this project (maybe 1%), but maybe it still has some value. |
I just wanted to say (it's not really an issue for me) that I had trouble getting autocompletion working with zap. But I figured it out and here is my MWE:
I don't know, maybe it's a bug with zap (it's v0.2) but all other plugins work as expected. This is the first one.
P.S. I was too lazy to hop on the train of "lazy
cd
ing" but now I can see the potential, specifically because autocompletion with paths is working. Really cool plugin, I can't wait when I'll feel all the gains it can give.The text was updated successfully, but these errors were encountered: