mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
20 lines
560 B
Bash
Executable file
20 lines
560 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
# Description: Update nnn plugins
|
|
#
|
|
# Shell: POSIX compliant
|
|
# Author: Arun Prakash Jana
|
|
|
|
# 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
|
|
|
|
mkdir -p ~/.config/nnn/plugins
|
|
cd ~/.config/nnn/plugins
|
|
wget -nv --show-progress https://github.com/jarun/nnn/archive/master.tar.gz
|
|
tar -xf master.tar.gz
|
|
cp -vf nnn-master/plugins/* .
|
|
sudo mv -vf nnn-master/misc/nlaunch/nlaunch /usr/local/bin/
|
|
rm -rf nnn-master/ master.tar.gz README.md
|