Skip to content
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

implement in z does not work #93

Open
wjlpersonal opened this issue Jun 24, 2024 · 0 comments
Open

implement in z does not work #93

wjlpersonal opened this issue Jun 24, 2024 · 0 comments
Assignees

Comments

@wjlpersonal
Copy link

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 !

@agkozak agkozak self-assigned this Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants