diff options
author | Florian Pritz <f-p@gmx.at> | 2009-03-06 13:54:15 +0100 |
---|---|---|
committer | Florian Pritz <f-p@gmx.at> | 2009-03-06 13:54:15 +0100 |
commit | a9ee2aad32f23758a9fa0c3596d8a8c920a9d22a (patch) | |
tree | 6f1b8a4d69f0531abd75c31a89e06dea8c50813a /.zsh/rc/30functions | |
parent | fcf81ce19965714eaf5858f60e20d644c3b978cb (diff) | |
download | dotfiles-a9ee2aad32f23758a9fa0c3596d8a8c920a9d22a.tar.gz dotfiles-a9ee2aad32f23758a9fa0c3596d8a8c920a9d22a.tar.xz |
new function to add current time to a filename
Diffstat (limited to '.zsh/rc/30functions')
-rw-r--r-- | .zsh/rc/30functions | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.zsh/rc/30functions b/.zsh/rc/30functions index f2096fd..df95ee4 100644 --- a/.zsh/rc/30functions +++ b/.zsh/rc/30functions @@ -20,6 +20,11 @@ update_zshrc() { exec zsh } +# add current time to a file +mbk() { + mv -b ${1} ${1}_`date +%Y-%m-%d_%T` +} + # easily make backups bk() { cp -b ${1} ${1}_`date +%Y-%m-%d_%T` |