z
z copied to clipboard
First run issue
~
❯ cddf #alias for 'cd ~/Code/dotfiles'
_z:22: no such file or directory: /Users/kevinsuttle/.z
Any ideas? Seems to only have happened on first invocation. My dotfiles are all symlinks in ~, pointing to the above directory, if that helps. Homebrew installed version of z.
I think I see what's going on and will try to get a fix committed soon.
Thanks @rupa
I try to reproduce the problem without success
rm ~/.z
alias cddf='cd ~/src/dotfiles'
cddf
@kevinSuttle , you use bash o zsh?
maybe if you enable debug of bash, you can get more information about the problem
set -x # enable debug
rm ~/.z
alias cddf='cd ~/src/dotfiles'
cddf
set +x
I use zsh
yeah, hmm, I thought i knew what the deal was but it turned out I didn't ... then I forgot about this. Knowing it's from a zsh user might help (I'm not one though) ...
I see the same thing on first run, also using zsh.
I am also seeing this issue from zsh.
+1 on this issue, just got it...
I also see this issue on zsh. z version: d5adc9a6239c2ee44309fd78bca68f301eb0d45a zsh --version: zsh 5.0.8 (x86_64-unknown-linux-gnu)
OK, I'll have another go at this ASAP
Thanks @rupa !
Downloaded today, same issue while running ". ./z.sh" Workaround: run bash, then ". ./z.sh", then exit bash.
I had the same problem, and I did what @FedericoCeratto suggested. not sure if it's from this or from the restart of the zsh, but it now works.
Have the same issue on fresh run of vagrant when trying to cd into "/home"
_z:22: no such file or directory: /home/vagrant/.z
Even with the error it does cd me into home directory.
But the error does not show when trying to cd into home again.
Seems like it only happens on first run.
I'm having this issue now
fyi just got this, first run after install. zsh user too. Great project, thank you!
cd Documents/Code _z:22: no such file or directory: /Users/choey/.z
Same error for me as well, please look into it ASAP.
Me too!
Same here!
I have this error at the first run after install. After it's OK.
Same issue, but seems to work just fine after the error is reported.
Repro steps:
- new Mac (expensive step!) I'm also using
oh-my-zsh
. - brew install z
- add
. /usr/local/etc/profile.d/z.sh
to.zshrc
- open new terminal window (I'm using iTerm) and follow along…
Last login: Fri Dec 13 07:42:48 on ttys001 > ~ cd Documents _z:22: no such file or directory: /Users/beau/.z > Documents cd .. > ~ z doc > Documents
yup, it's also happened in my terminal
~
❯ brew install z
==> Downloading https://github.com/rupa/z/archive/v1.9.tar.gz
==> Downloading from https://codeload.github.com/rupa/z/tar.gz/v1.9
##O#- #
==> Caveats
For Bash or Zsh, put something like this in your $HOME/.bashrc or $HOME/.zshrc:
. /usr/local/etc/profile.d/z.sh
==> Summary
🍺 /usr/local/Cellar/z/1.9: 5 files, 20.7KB, built in 5 seconds
~ 8s
❯ cd Workspace
~/Workspace
❯ z wo
zsh: command not found: z
~/Workspace
❯ vim ~/.zshrc # add . /usr/local/etc/profile.d/z.sh
~/Workspace 10s
❯ source ~/.zshrc
_z:22: no such file or directory: /Users/shaw/.z
like after fist install, .z
not found when is using, should check .z
exist
This seems to be a harmless error. After first-run shows this error, then ~/.z
exists and the z
command works.
Bump #256.