aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/getplugs
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/getplugs')
-rwxr-xr-xplugins/getplugs5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/getplugs b/plugins/getplugs
index 14184c3..a42bab1 100755
--- a/plugins/getplugs
+++ b/plugins/getplugs
@@ -5,6 +5,11 @@
# 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