zsh-z icon indicating copy to clipboard operation
zsh-z copied to clipboard

implement in z does not work

Open wjlpersonal opened this issue 8 months ago • 0 comments

I am using ubuntu , zsh, and oh-my-zsh

When I type z, there is no auto complement ,unless I type all the correct path on it.

giovanni at Laptop-G in ~/src/mypj/mycc/src (main●●●) 
$ z   
149928     /home/giovanni/src/mypj/mycc/src
194401     /home/giovanni/src
494147     /home/giovanni/.oh-my-zsh/custom/plugins/zsh-z

giovanni at Laptop-G in ~/src/mypj/mycc/src (main●●●) 
$ z a 

giovanni at Laptop-G in ~/.oh-my-zsh/custom/plugins/zsh-z (master) 
$ z b

giovanni at Laptop-G in ~/.oh-my-zsh/custom/plugins/zsh-z (master) 
$ z cus

giovanni at Laptop-G in ~/.oh-my-zsh/custom/plugins/zsh-z (master) 
$ z et 

giovanni at Laptop-G in ~/.oh-my-zsh/custom/plugins/zsh-z (master) 
$ z ~ 

giovanni at Laptop-G in ~ 
$ 

And there

I git clone in my .oh-my-zsh/custom/plugins/zsh-z/ path , and I use .zshrc to installed it.

giovanni at Laptop-G in ~ 
$ type z
z is an alias for zshz 2>&1

giovanni at Laptop-G in ~ 
$ z -h         
Usage: z [OPTION]... [ARGUMENT]
Jump to a directory that you have visited frequently or recently, or a bit of both, based on the partial string ARGUMENT.

With no ARGUMENT, list the directory history in ascending rank.

  --add Add a directory to the database
  -c    Only match subdirectories of the current directory
  -e    Echo the best match without going to it
  -h    Display this help and exit
  -l    List all matches without going to them
  -r    Match by rank
  -t    Match by recent access
  -x    Remove a directory from the database (by default, the current directory)
  -xR   Remove a directory and its subdirectories from the database (by default, the current directory)

this is my .zshrc:

export ZSH="$HOME/.oh-my-zsh"

ZSH_THEME="steeef"

plugins=(
  git
  #zsh-autosuggestions
  zsh-syntax-highlighting
)
plugins=(git zsh-z )

        
source $ZSH/oh-my-zsh.sh

export PATH=$PATH:/home/giovanni/app/anaconda3/bin
alias c=clear

and this is what you may need to solve this issue

giovanni at Laptop-G in ~ 
$ setopt
alwaystoend
autocd
autopushd
completeinword
extendedhistory
noflowcontrol
histexpiredupsfirst
histignoredups
histignorespace
histverify
interactive
interactivecomments
longlistjobs
monitor
promptsubst
pushdignoredups
pushdminus
sharehistory
shinstdin
zle

I guess my .z database doesnot work correctly, but I'm not sure and don't know how to fix it.

Thank you so much to help me !

wjlpersonal avatar Jun 24 '24 07:06 wjlpersonal