From a156564db71147402abcca616d63f6b43d4ee4ab Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 5 May 2014 16:23:22 +0200 Subject: Adding further convenience functions for md5, copying --- .zsh.after/functions.zsh | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- cgit v1.2.3-70-g09d2