diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2018-09-06 05:43:14 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2018-09-06 06:33:50 +0530 |
commit | 028e04abd35d2c306b27b445e4be59329f57d88f (patch) | |
tree | 6feb34f40a9805d84d684a416c73da5eb76e0f5e /README.md | |
parent | dbd1db72feb5bb569fd49c3c3577ebe5aaa55633 (diff) | |
download | nnn-028e04abd35d2c306b27b445e4be59329f57d88f.tar.gz |
Create copy file in home dir, remove copy file on exit
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 - |