Commit 7f9ad833 authored by Bruno's avatar Bruno

Merge pull request #196 from rominf/bak

Bak plugin: fixed directory handling
parents 672ec089 1335503c
function __bak_name
# trim / for directories
set arg (echo $argv[1] | sed "s/\///")
set arg (echo $argv[1] | sed 's/\/$//')
echo "$arg.(date +"%Y%m%d_%H%M%S").bak"
end
......
......@@ -2,5 +2,5 @@
# (c) Roman Inflianskas (rominf) <infroma@gmail.com>, 2014
function cpbak
__bak cp $argv
__bak 'cp -a' $argv
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment