diff --git a/.README.md b/.README.md index ae3c1dd..c66629e 100644 --- a/.README.md +++ b/.README.md @@ -444,12 +444,15 @@ git clone https://github.com/jarun/nnn.git cd nnn make clean -sudo make O_GITSTATUS=1 O_NAMEFIRST=1 O_NERD=1 install -sudo make PREFIX=/opt/nnn O_GITSTATUS=1 O_NAMEFIRST=1 O_NERD=1 install - +sudo make O_GITSTATUS=1 O_NAMEFIRST=1 O_NERD=1 install sudo cp -v misc/auto-completion/zsh/* /usr/local/share/zsh/site-functions sudo chmod -v a+r /usr/local/share/zsh/site-functions/* + # into /opt +sudo make O_GITSTATUS=1 O_NAMEFIRST=1 O_NERD=1 PREFIX=/opt/nnn install +sudo cp -v misc/auto-completion/zsh/* /opt/zsh/site-functions +sudo chmod -v a+r /opt/zsh/site-functions/* + # Plugins mv -v ~/.config/nnn/plugins $HOME/nnn_plugins_$(stat -c %Y ~/.config/nnn/plugins) mkdir -p ~/.config/nnn diff --git a/.zshrc b/.zshrc index 2c8f187..440a2b5 100644 --- a/.zshrc +++ b/.zshrc @@ -37,7 +37,11 @@ path=( $path) setopt nonullglob -fpath=($fpath /usr/share/zsh/site-functions) +fpath=( + $fpath + /opt/zsh/site-functions + /usr/share/zsh/site-functions +) # Remove duplicates typeset -U path fpath