mirror of
https://github.com/denisidoro/navi
synced 2024-11-21 19:13:07 +00:00
doc: Added oh-my-zsh installation instructions.
This commit is contained in:
parent
32b1b42f2c
commit
507bd277a9
1 changed files with 31 additions and 0 deletions
31
README.md
31
README.md
|
@ -58,6 +58,37 @@ sudo make install
|
|||
# install fzf: https://github.com/junegunn/fzf
|
||||
```
|
||||
|
||||
### Using oh-my-zsh
|
||||
|
||||
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'
|
||||
|
||||
DST="$ZSH_CUSTOM/plugins"
|
||||
mkdir -p "$DST" && cd "$DST"
|
||||
git clone http://github.com/denisidoro/navi
|
||||
```
|
||||
|
||||
To enable navi, simply add it to the oh-my-zsh plugin array:
|
||||
|
||||
```
|
||||
# Sample ~/.zshrc
|
||||
ZSHCFG="$HOME/.zsh"
|
||||
ZSH="$ZSHCFG/oh-my-zsh"
|
||||
ZSH_CUSTOM="$ZSHCFG"
|
||||
plugins=(archlinux docker compleat git github gpg-agent ssh-agent nvm tmux fzf workon navi)
|
||||
# ...
|
||||
source "$ZSH/oh-my-zsh.sh"
|
||||
```
|
||||
|
||||
Then use it with `Alt-G`.
|
||||
|
||||
This method has the following advantages:
|
||||
- No PATH modification
|
||||
- No root install required
|
||||
|
||||
Upgrading
|
||||
---------
|
||||
|
||||
|
|
Loading…
Reference in a new issue