summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2009-10-08 15:06:38 +0200
committerFlorian Pritz <bluewind@xssn.at>2009-10-08 15:06:38 +0200
commitec2677cea89b4daa732f4bbcef478a6affeae53a (patch)
tree886c7219561b1d4570cc61e16270eef1ee0bdb61 /.zshrc
parent433d338c765fae4408edebd96c78508f5d070147 (diff)
downloaddotfiles-ec2677cea89b4daa732f4bbcef478a6affeae53a.tar.gz
dotfiles-ec2677cea89b4daa732f4bbcef478a6affeae53a.tar.xz
zshrc: make bk work with dirs
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index e330eb4..e32291d 100644
--- a/.zshrc
+++ b/.zshrc
@@ -173,7 +173,7 @@ mbk() {
# easily make backups
bk() {
- cp -b "${1}" "$(echo $1 | sed -r "s/(.*)(\.|$)(.*)/\1_`date +%Y-%m-%d_%T`\2\3/")"
+ cp -br "${1}" "$(echo $1 | sed -r "s/(.*)(\.|$)(.*)/\1_`date +%Y-%m-%d_%T`\2\3/")"
}
# chpwd () => a function which is executed whenever the directory is changed