diff options
author | David Runge <david.runge@frqrec.com> | 2014-05-05 16:23:22 +0200 |
---|---|---|
committer | David Runge <david.runge@frqrec.com> | 2014-05-05 16:23:22 +0200 |
commit | a156564db71147402abcca616d63f6b43d4ee4ab (patch) | |
tree | d111468592eb236876b0274a80e52d873df6f187 | |
parent | 4dc5d0b2ddddc39cf8e10950799e8d2d030cdd17 (diff) | |
download | dotfiles-a156564db71147402abcca616d63f6b43d4ee4ab.tar.gz dotfiles-a156564db71147402abcca616d63f6b43d4ee4ab.tar.bz2 dotfiles-a156564db71147402abcca616d63f6b43d4ee4ab.tar.xz dotfiles-a156564db71147402abcca616d63f6b43d4ee4ab.zip |
Adding further convenience functions for md5, copying
-rw-r--r-- | .zsh.after/functions.zsh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.zsh.after/functions.zsh b/.zsh.after/functions.zsh index ceaf909..2255af7 100644 --- a/.zsh.after/functions.zsh +++ b/.zsh.after/functions.zsh @@ -145,6 +145,17 @@ { cp $@ "`cat /tmp/pwd`" } + function cpmk() { + DIR=${*: -1} + [ ! -d $DIR ] && mkdir -p $DIR + cp $* + + } + + cpmd5(){ + md5sum $1|cut -d ' ' -f 1|cpx + } + function publish() { [ -f $1 ] || return |