nnn/plugins/getplugs

20 lines
563 B
Plaintext
Raw Normal View History

2019-04-19 13:34:20 +00:00
#!/usr/bin/env sh
# Description: Update nnn plugins
#
# Shell: POSIX compliant
# Author: Arun Prakash Jana
2019-06-05 12:22:33 +00:00
# backup any earlier plugins
if [ -d ~/.config/nnn/plugins ]; then
tar -C ~/.config/nnn/ -cf ~/.config/nnn/"plugins-$(date '+%Y%m%d%H%M').tar.bz2" plugins/
fi
2019-04-30 03:06:55 +00:00
mkdir -p ~/.config/nnn/plugins
cd ~/.config/nnn/plugins
2019-04-19 13:34:20 +00:00
wget -nv --show-progress https://github.com/jarun/nnn/archive/master.tar.gz
tar -xf master.tar.gz
cp -vf nnn-master/plugins/* .
2019-05-05 02:50:35 +00:00
sudo mv -vf nnn-master/scripts/nlaunch/nlaunch /usr/local/bin/
2019-04-19 13:34:20 +00:00
rm -rf nnn-master/ master.tar.gz README.md