소스 검색

getplugs: backup earlier plugins

master
Arun Prakash Jana 5 년 전
부모
커밋
d970a7416f
No known key found for this signature in database GPG 키 ID: A75979F35C080412
2개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      plugins/README.md
  2. +5
    -0
      plugins/getplugs

+ 1
- 1
plugins/README.md 파일 보기

@@ -24,7 +24,7 @@

#### Installing plugins

Download the `getplugs` plugin and execute it anywhere to get all the plugins installed to `~/.config/nnn/plugins`. You can run it again later to update the plugins.
Download the `getplugs` plugin and execute it anywhere to get all the plugins installed to `~/.config/nnn/plugins`. You can run it again later to update the plugins. It backs up earlier plugins.

**NOTE:** `getplugs` also downloads the launcher `nlaunch` and tries to place it at `/usr/local/bin/` using `sudo`. If it fails you have to place `nlauch` manually somewhere in your `$PATH`.



+ 5
- 0
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


불러오는 중...
취소
저장