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

better install instructions #229

Open
swyxio opened this issue Jan 30, 2018 · 8 comments
Open

better install instructions #229

swyxio opened this issue Jan 30, 2018 · 8 comments

Comments

@swyxio
Copy link

swyxio commented Jan 30, 2018

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..

@mgiugliano
Copy link

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

@mitchellporter
Copy link

@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.

@swyxio
Copy link
Author

swyxio commented Jul 23, 2019

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..

@mitchellporter
Copy link

mitchellporter commented Jul 23, 2019

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.

@mlncn
Copy link

mlncn commented Jul 31, 2019

Just putting brew install z somewhere on the project homepage would also be a nice start!

@borlafu
Copy link

borlafu commented Oct 3, 2019

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

@tekumara
Copy link

tekumara commented Nov 2, 2019

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

@prasad-shirodkar
Copy link

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

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

7 participants