diff options
| author | 2020-04-24 10:12:24 +0530 | |
|---|---|---|
| committer | 2020-04-24 18:12:18 +0530 | |
| commit | bc572df55a35cc738466996abe26339fc5acaeda (patch) | |
| tree | 3798d449e971b9265a79a901ccc8b7ca37dd5f8d /plugins/x2sel | |
| parent | 752bc67de03d158ece3f0fb43f6f2a3e6b2011b9 (diff) | |
| download | nnn-bc572df55a35cc738466996abe26339fc5acaeda.tar.gz | |
NNN_SEL: custom selection file
Diffstat (limited to 'plugins/x2sel')
| -rwxr-xr-x | plugins/x2sel | 4 |
1 files changed, 2 insertions, 2 deletions
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" |