From 226fb18d96e87148ac4a14309fd1203a8c1dc3e1 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 3 Jan 2019 23:54:31 +0530 Subject: Change location of copier script --- README.md | 2 +- scripts/copier/copier.sh | 13 ------------- scripts/user-scripts/copier.sh | 13 +++++++++++++ 3 files changed, 14 insertions(+), 14 deletions(-) delete mode 100755 scripts/copier/copier.sh create mode 100755 scripts/user-scripts/copier.sh diff --git a/README.md b/README.md index 4768222..2b920de 100644 --- a/README.md +++ b/README.md @@ -431,7 +431,7 @@ so you can easily handle files together: ##### to clipboard -Along with default copy, `nnn` can pipe the absolute path of the current file or multiple files to a copier script. For example, you can use `xsel` on Linux or `pbcopy` on macOS. Here's a sample [copier script](https://github.com/jarun/nnn/tree/master/scripts/copier). +Along with default copy, `nnn` can pipe the absolute path of the current file or multiple files to a copier script. For example, you can use `xsel` on Linux or `pbcopy` on macOS. Here's a sample [copier script](https://github.com/jarun/nnn/blob/master/scripts/user-scripts/copier.sh). To inform `nnn` of the executable copier script location: diff --git a/scripts/copier/copier.sh b/scripts/copier/copier.sh deleted file mode 100755 index 3d8ccb5..0000000 --- a/scripts/copier/copier.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -# Linux -cat ~/.nnncp | xargs -0 | xsel -bi - -# macOS -# cat ~/.nnncp | xargs -0 | pbcopy - -# Termux -# cat /data/data/com.termux/files/home/.nnncp | xargs -0 | termux-clipboard-set - -# Cygwin -# cat ~/.nnncp | xargs -0 | clip diff --git a/scripts/user-scripts/copier.sh b/scripts/user-scripts/copier.sh new file mode 100755 index 0000000..3d8ccb5 --- /dev/null +++ b/scripts/user-scripts/copier.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# Linux +cat ~/.nnncp | xargs -0 | xsel -bi + +# macOS +# cat ~/.nnncp | xargs -0 | pbcopy + +# Termux +# cat /data/data/com.termux/files/home/.nnncp | xargs -0 | termux-clipboard-set + +# Cygwin +# cat ~/.nnncp | xargs -0 | clip -- cgit v1.2.3-70-g09d2