From fdb15e0824c6744edfbc4f4126476f9ed98a1c98 Mon Sep 17 00:00:00 2001 From: Tyler Starr Date: Sun, 3 Sep 2023 12:16:34 -0700 Subject: [PATCH] fix nnn plugins --- home/.chezmoiexternal.toml | 8 -------- home/dot_config/nnn/plugins/executable_getdrop | 7 +++++++ home/dot_zshrc | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) create mode 100755 home/dot_config/nnn/plugins/executable_getdrop diff --git a/home/.chezmoiexternal.toml b/home/.chezmoiexternal.toml index 6f87dbed..bbf8d1b7 100644 --- a/home/.chezmoiexternal.toml +++ b/home/.chezmoiexternal.toml @@ -49,11 +49,3 @@ type = "git-repo" url = "https://codeberg.org/xmobar/xmobar" refreshPeriod = "168h" - -[".config/nnn/plugins"] - type = "archive" - url = "https://github.com/jarun/nnn/archive/master.zip" - exact = true - stripComponents = 2 - refreshPeriod = "168h" - include = ["*/plugins/**"] diff --git a/home/dot_config/nnn/plugins/executable_getdrop b/home/dot_config/nnn/plugins/executable_getdrop new file mode 100755 index 00000000..b422779a --- /dev/null +++ b/home/dot_config/nnn/plugins/executable_getdrop @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +if [ ! -e "$1" ] ; then + git annex get "$1" +else + git annex drop "$1" +fi diff --git a/home/dot_zshrc b/home/dot_zshrc index d7c2ba4b..75d98bac 100644 --- a/home/dot_zshrc +++ b/home/dot_zshrc @@ -70,6 +70,6 @@ alias xl="void-list-packages" # nnn alias n="nnn -e" export NNN_FCOLORS='0000E6310000000000000000' -export NNN_PLUG='f:finder;o:fzopen;d:diffs;t:nmount;v:imgview;q:preview-tui;g:getdrop' +export NNN_PLUG='g:getdrop' export NNN_FIFO="/tmp/nnn.fifo" export NNN_TRASH=1