Skip to content

Instantly share code, notes, and snippets.

@mischah
Last active December 9, 2022 02:11
Show Gist options
  • Select an option

  • Save mischah/8149239 to your computer and use it in GitHub Desktop.

Select an option

Save mischah/8149239 to your computer and use it in GitHub Desktop.

Revisions

  1. mischah revised this gist Dec 27, 2013. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions z.md
    Original file line number Diff line number Diff line change
    @@ -2,13 +2,13 @@

    Do you spend lots of time doing things like this?

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

    With z, you could just do this:

    ```
    ```bash
    z whereiwant
    ```

    @@ -20,13 +20,13 @@ You need [Homebrew](http://brew.sh/) to install und init z in the way it is desc


    Installing z via your terminal:
    ```
    ```bash
    brew update
    brew install z
    ```

    After installing you have to load it via adding the following to your '~/.bash_profile'
    ```
    ```bash
    # Move next only if `homebrew` is installed
    if command -v brew >/dev/null 2>&1; then
    # Load rupa's z if installed
  2. mischah revised this gist Dec 27, 2013. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions z.md
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,8 @@ With z, you could just do this:
    z whereiwant
    ```

    See [README](https://github.com/rupa/z) of z for all available options.

    ----

    You need [Homebrew](http://brew.sh/) to install und init z in the way it is described in this gist:
  3. mischah revised this gist Dec 27, 2013. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions z.md
    Original file line number Diff line number Diff line change
    @@ -29,9 +29,6 @@ After installing you have to load it via adding the following to your '~/.bash_p
    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
    # If possible, add tab completion for many more commands
    [ -f $(brew --prefix)/etc/bash_completion ] && source $(brew --prefix)/etc/bash_completion
    fi
    ```

  4. mischah renamed this gist Dec 27, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md → z.md
    Original file line number Diff line number Diff line change
    @@ -38,4 +38,4 @@ fi
    ----

    Need more like this?
    Start exploring dotfiles like [mine](https://github.com/mischah/dotfiles) which are based on the [famous ones](https://github.com/mathiasbynens/dotfiles) from @mathiasbynens
    Start exploring dotfiles like [mine](https://github.com/mischah/dotfiles) which are based on the [famous ones](https://github.com/mathiasbynens/dotfiles) from [@mathiasbynens](https://twitter.com/mathias)
  5. mischah revised this gist Dec 27, 2013. 1 changed file with 7 additions and 2 deletions.
    9 changes: 7 additions & 2 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -27,10 +27,15 @@ After installing you have to load it via adding the following to your '~/.bash_p
    ```
    # Move next only if `homebrew` is installed
    if command -v brew >/dev/null 2>&1; then
    \# Load rupa's z if installed
    # Load rupa's z if installed
    [ -f $(brew --prefix)/etc/profile.d/z.sh ] && source $(brew --prefix)/etc/profile.d/z.sh
    # If possible, add tab completion for many more commands
    [ -f $(brew --prefix)/etc/bash_completion ] && source $(brew --prefix)/etc/bash_completion
    fi
    ```
    ```

    ----

    Need more like this?
    Start exploring dotfiles like [mine](https://github.com/mischah/dotfiles) which are based on the [famous ones](https://github.com/mathiasbynens/dotfiles) from @mathiasbynens
  6. mischah revised this gist Dec 27, 2013. 3 changed files with 1 addition and 8 deletions.
    5 changes: 0 additions & 5 deletions .bash_profile
    Original file line number Diff line number Diff line change
    @@ -1,5 +0,0 @@
    # 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
    2 changes: 0 additions & 2 deletions install z.sh
    Original file line number Diff line number Diff line change
    @@ -1,2 +0,0 @@
    brew update
    brew install z
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -25,7 +25,7 @@ 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
    # 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
  7. mischah revised this gist Dec 27, 2013. 1 changed file with 36 additions and 0 deletions.
    36 changes: 36 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    #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
    ```

    ----

    You need [Homebrew](http://brew.sh/) 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
    # If possible, add tab completion for many more commands
    [ -f $(brew --prefix)/etc/bash_completion ] && source $(brew --prefix)/etc/bash_completion
    fi
    ```
  8. mischah revised this gist Dec 27, 2013. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions .bash_profile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # 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
  9. mischah created this gist Dec 27, 2013.
    2 changes: 2 additions & 0 deletions install z.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    brew update
    brew install z