You are not logged in.
Pages: 1
I follow wiki page: https://wiki.archlinux.org/index.php/zs … irectories
But then result from dirs -v seem to be sorted out to give final one with cd -<tab>
dirs -v
0 ~/.cache/downloads/documents
1 ~
2 ~/.cache/zsh
3 ~/.zsh/scriptscd -<tab>
0 -- ~/.zsh/scripts
1 -- ~/.cache/zsh
2 -- ~If I choose 1 then it cd to ~/.zsh/scripts instead of `/.cache/zsh
Last edited by manhngd9 (2018-12-01 11:41:33)
Offline
I've tested on other machine and the index of zsh start with 1, that means dirs -v and cd -<tab> start index from 1, but on the first post, it starts with index 0. So I believe there's something change in background that I didn't notice what have been changed by programs/scripts.
Is there a way to force zsh using array index from 1? I could not trace why/where scripts change array's behavior so probably I have to force it in .zshrc e.g.
Two machines have the same configs of all.
EDIT: I check with second machine with command: set | grep zsh
I've noticed the output that has: ZSH_ARGZERO=-zsh
I'll check with the first one when I'm available.
Last edited by manhngd9 (2018-12-03 02:45:54)
Offline
Pages: 1