Skip to content

Instantly share code, notes, and snippets.

@jastuccio
Forked from mischah/z.md
Last active October 1, 2017 08:09
Show Gist options
  • Save jastuccio/4d5d9cfb968266383a4a23feb9a0e0d2 to your computer and use it in GitHub Desktop.
Save jastuccio/4d5d9cfb968266383a4a23feb9a0e0d2 to your computer and use it in GitHub Desktop.
Installing und initializing z (https://github.com/rupa/z) with help of Homebrew.

#The power of z

Do you spend lots of time doing things like this?

cd this/is/the/path/that/i/want/so/i/type/it/all/out/to/get/whereiwant

With z, you could just do this:

z whereiwant

See README of z for all available options.


You need Homebrew to install und init z in the way it is described in this gist:

Installing z via your terminal:

brew update 
brew install z

After installing you have to load it via adding the following to your '~/.bash_profile'

# Move next only if `homebrew` is installed
if command -v brew >/dev/null 2>&1; then
	# Load rupa's z if installed
	[ -f $(brew --prefix)/etc/profile.d/z.sh ] && source $(brew --prefix)/etc/profile.d/z.sh
fi

Thanks mischah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment