From bc572df55a35cc738466996abe26339fc5acaeda Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 24 Apr 2020 10:12:24 +0530 Subject: NNN_SEL: custom selection file --- plugins/x2sel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/x2sel') diff --git a/plugins/x2sel b/plugins/x2sel index 3113773..79856eb 100755 --- a/plugins/x2sel +++ b/plugins/x2sel @@ -16,7 +16,7 @@ IFS="$(printf '%b_' '\n')"; IFS="${IFS%_}" # protect trailing \n -SELECTION=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection +selection=${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection} getclip () { @@ -54,4 +54,4 @@ for file in $CLIPBOARD ; do fi done -printf "%s" "$CLIPBOARD" | tr '\n' '\0' > "$SELECTION" +printf "%s" "$CLIPBOARD" | tr '\n' '\0' > "$selection" -- cgit v1.2.3-70-g09d2