-
-
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
Tab suggestions no longer working #90
Comments
I might have the same problem. It's my first time using this plugin and tab completion only shows options, not directories |
Try typing
and give me the first few lines of what it says. Thanks! |
Let me know if you need more. Thanks!
|
It looks as if you're not actually using Zsh-z, but rather You'll want to upgrade your Oh-My-Zsh installation. Back up your
You might also want to
Then try using
again. The code returned should look like
etc. Let me know if that worked. |
Thanks for your help. I tried all of the above - but nothing worked. OMZ was already up-to-date. However, I then found this line in my .zshrc file…
Which I believe I added one time when z stopped working altogether. I've removed that line, and all is working again. |
@paulmist I can't believe I missed that line! Glad you've got it fixed. @gBonvenuto Want to check if you've got something similar going on? Try |
Hello, thank you for mentioning me! here's my
I tried the steps of update omz, and it's still the same output EDIT: seems like I'm also using rupa, because in my .oh-my-zsh/plugins/z/z.sh this is the first line:
I think it might be worth mentioning I used to use zoxide before knowing there was this zsh plugin EDIT 2: I've decided to just install it with git clone in my custom/plugins directory. Sorry for this roller-coaster lol |
I'm having a similar issue. Typing |
@Nxt3 I'll try to help you. Please post the contents of your |
@agkozak Sure thing: #!/opt/homebrew/bin zsh
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.bash/zsh/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# load autocompletion
autoload -Uz compinit && compinit;
# +---------+
# | PLUGINS |
# +---------+
# get zsh_unplugged and store it with plugins
if [[ ! -d $ZPLUGINDIR/zsh_unplugged ]]; then
git clone --quiet https://github.com/mattmc3/zsh_unplugged $ZPLUGINDIR/zsh_unplugged
fi
source $ZPLUGINDIR/zsh_unplugged/zsh_unplugged.zsh
# plugin repos
repos=(
romkatv/powerlevel10k
tarrasch/zsh-bd
agkozak/zsh-z
laggardkernel/zsh-thefuck
zsh-users/zsh-autosuggestions
zsh-users/zsh-syntax-highlighting
)
plugin-load $repos
# +------------+
# | PATH STUFF |
# +------------+
# load homebrew in PATH
export PATH="/opt/homebrew/bin:$PATH"
# +--------------+
# | MISC OPTIONS |
# +--------------+
export CLICOLOR=1 # color directories when running 'ls'
setopt CORRECT # Spelling correction
# smart-casing for z-command
ZSHZ_CASE=smart
# +---------+
# | HISTORY |
# +---------+
export HISTFILE="$HOME/.zhistory"
setopt HIST_SAVE_NO_DUPS # Do not write a duplicate event to the history file.
setopt HIST_IGNORE_DUPS # Do not record an event that was just recorded again.
setopt SHARE_HISTORY # Share history between all sessions.
# +----------------+
# | CUSTOMIZATIONS |
# +----------------+
for file in ~/.bash/zsh/customizations/*; do
if [[ -f $file ]]; then
source "$file"
fi;
done
# case-insensitive auto-completion
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
# better looking completions for z-command
zstyle ':completion:*' menu select |
@Nxt3 OK, I found the problem. You need to
I think everything should work. |
Nice okay that fixes Seems like I need to figure out the load order. Thanks for the help! |
I've been using the Z plugin with Oh My Zsh for years and suddenly the tab suggestions have disappeared.
Thanks in advance.
Here's my .zshrc file if that's of use:
The text was updated successfully, but these errors were encountered: