summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.zshrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/.zshrc b/.zshrc
index 282e98d..f83b7da 100644
--- a/.zshrc
+++ b/.zshrc
@@ -257,9 +257,9 @@ mbk() {
mv -b "${1}" "$(echo $1 | sed -r "s/(.*)(\.|$)(.*)/\1_`date +%Y-%m-%d_%H%M%S`\2\3/")"
}
-# easily make backups
+# easily make backups
bk() {
- cp -br "${1}" "$(echo $1 | sed -r "s/(.*)(\.|$)(.*)/\1_`date +%Y-%m-%d_%H%M%S`\2\3/")"
+ rsync -phaxPHAX "${1}" "$(echo $1 | sed -r "s/(.*)(\.|$)(.*)/\1_`date +%Y-%m-%d_%H%M%S`\2\3/")"
}
# chpwd () => a function which is executed whenever the directory is changed