mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Add relative paths support for cp/mv as (#668)
This commit is contained in:
parent
cb9e785145
commit
45d96ee60d
|
@ -660,7 +660,7 @@ static const char * const toks[] = {
|
||||||
|
|
||||||
static const char * const patterns[] = {
|
static const char * const patterns[] = {
|
||||||
"sed -i 's|^\\(\\(.*/\\)\\(.*\\)$\\)|#\\1\\n\\3|' %s",
|
"sed -i 's|^\\(\\(.*/\\)\\(.*\\)$\\)|#\\1\\n\\3|' %s",
|
||||||
"sed 's|^\\([^#][^/]\\?.*\\)$|%s/\\1|;s|^#\\(/.*\\)$|\\1|' "
|
"sed 's|^\\([^#/][^/]\\?.*\\)$|%s/\\1|;s|^#\\(/.*\\)$|\\1|' "
|
||||||
"%s | tr '\\n' '\\0' | xargs -0 -n2 sh -c '%s \"$0\" \"$@\" < /dev/tty'",
|
"%s | tr '\\n' '\\0' | xargs -0 -n2 sh -c '%s \"$0\" \"$@\" < /dev/tty'",
|
||||||
"\\.(bz|bz2|gz|tar|taz|tbz|tbz2|tgz|z|zip)$",
|
"\\.(bz|bz2|gz|tar|taz|tbz|tbz2|tgz|z|zip)$",
|
||||||
"sed -i 's|^%s\\(.*\\)$|%s\\1|' %s",
|
"sed -i 's|^%s\\(.*\\)$|%s\\1|' %s",
|
||||||
|
|
Loading…
Reference in a new issue