aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-09-06 05:43:14 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-09-06 06:33:50 +0530
commit028e04abd35d2c306b27b445e4be59329f57d88f (patch)
tree6feb34f40a9805d84d684a416c73da5eb76e0f5e /README.md
parentdbd1db72feb5bb569fd49c3c3577ebe5aaa55633 (diff)
downloadnnn-028e04abd35d2c306b27b445e4be59329f57d88f.tar.gz
Create copy file in home dir, remove copy file on exit
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index e053132..2424d45 100644
--- a/README.md
+++ b/README.md
@@ -391,7 +391,7 @@ Note that the filename is not escaped. So copying may still fail for filenames h
#### copy file paths when X is missing
-A very common scenario on headless remote servers connected via SSH. As the clipboard is missing, `nnn` copies the path names to the tmp file `/tmp/nnncp$USER`.
+A very common scenario on headless remote servers connected via SSH. As the clipboard is missing, `nnn` copies the path names to the tmp file `$HOME/.nnncp`.
`nnn` needs to know X is unavailable:
@@ -400,15 +400,15 @@ A very common scenario on headless remote servers connected via SSH. As the clip
Use <kbd>^Y</kbd> and/or <kbd>^K</kbd> to copy file paths as usual. To use the copied paths from the cmdline, use command substitution:
# bash/zsh
- ls -ltr `cat /tmp/nnncpuser`
- ls -ltr $(cat /tmp/nnncpuser)
+ ls -ltr `cat /home/user/.nnncp`
+ ls -ltr $(cat /home/user/.nnncp)
# fish
- ls -ltr (cat /tmp/nnncpuser)
+ ls -ltr (cat /home/user/.nnncp)
An alias may be handy:
- alias ncp='cat /tmp/nnncpuser'
+ alias ncp='cat /home/user/.nnncp'
so you can -