fix(nnn): zsh completion in /opt

This commit is contained in:
Michel 2024-06-20 17:55:28 +02:00
parent 3ea1c77351
commit 16eae75f16
2 changed files with 11 additions and 4 deletions

View File

@ -445,11 +445,14 @@ 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 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

6
.zshrc
View File

@ -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