Open swyxio opened 6 years ago
For its (automated) installation, I have been using something like:
git clone https://github.com/rupa/z/ ~/tmp/z
chmod +x ~/tmp/z/z.sh
mv ~/tmp/z/z.sh /usr/local/bin/
mv ~/tmp/z/z.1 /usr/local/share/man/man1
rm -rf ~/tmp/z
@sw-yx After installing with homebrew try running brew info z
and read the Caveats
section. After updating my .zshrc
file it's working perfectly.
cool i mean i have it running right now so its not a problem but if the plain fact is that brew install z
doesnt work out of the box it should probably have better docs..
but if the plain fact is that brew install z doesnt work out of the box it should probably have better docs..
Yeah that's a good point I agree.
Just putting brew install z
somewhere on the project homepage would also be a nice start!
The Caveats after brew install z
tell you what to do :)
==> Downloading https://github.com/rupa/z/archive/v1.9.tar.gz
==> Downloading from https://codeload.github.com/rupa/z/tar.gz/v1.9
######################################################################## 100.0%
==> 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 3 seconds
I'm using the following with macOS and zsh to install z idempotently:
brew install z
grep -q z\.sh ~/.zshrc || echo ". /usr/local/etc/profile.d/z.sh" >> ~/.zshrc
+1 for adding instructions to the README
For its (automated) installation, I have been using something like:
git clone https://github.com/rupa/z/ ~/tmp/z chmod +x ~/tmp/z/z.sh mv ~/tmp/z/z.sh /usr/local/bin/ mv ~/tmp/z/z.1 /usr/local/share/man/man1 rm -rf ~/tmp/z
I had to do the following for man z
command to work correctly on linux (I am on debian):
git clone https://github.com/rupa/z/ ~/tmp/z
chmod +x ~/tmp/z/z.sh
sudo mv ~/tmp/z/z.sh /usr/local/bin/
sudo mkdir -p /usr/local/share/man/man1 # create the man1 directory if it does not exist
sudo mv ~/tmp/z/z.1 /usr/local/share/man/man1/ # move z.1 file under the man1 directory
rm -rf ~/tmp/z
brew install z didnt work for me
so here is @wesbos' instructions https://www.youtube.com/watch?v=qbNn5zJLZU0
these should prob be included in the readme..