Install instruction updates (#106)

Fixes #51
This commit is contained in:
Denis Isidoro 2019-10-02 16:07:37 -03:00 committed by GitHub
parent 5eb5f64c5e
commit ae8de44df7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ Alternatively, you can `git clone` this repository and run `make`:
```sh
git clone --depth 1 https://github.com/denisidoro/navi /opt/navi
cd /opt/navi
sudo make install
sudo make install # or ./scripts/install /some/path
# install fzf: https://github.com/junegunn/fzf
```
@ -63,7 +63,6 @@ sudo make install
Make sure that your oh-my-zsh `$ZSH_CUSTOM` directory is configured, then clone navi into the plugins directory.
```sh
export ZSH_CUSTOM='/path/to/.zsh'
plugins_dir="$ZSH_CUSTOM/plugins"
mkdir -p "$plugins_dir"
cd "$plugins_dir"
@ -71,14 +70,8 @@ git clone https://github.com/denisidoro/navi
```
Then, add it to the oh-my-zsh plugin array:
```
# Sample ~/.zshrc
ZSHCFG="$HOME/.zsh"
ZSH="$ZSHCFG/oh-my-zsh"
ZSH_CUSTOM="$ZSHCFG"
```sh
plugins=(docker tmux fzf navi)
# ...
source "$ZSH/oh-my-zsh.sh"
```
Finally, you can use it as a [shell widget](#shell-widget).