aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2014-05-05 16:23:22 +0200
committerDavid Runge <david.runge@frqrec.com>2014-05-05 16:23:22 +0200
commita156564db71147402abcca616d63f6b43d4ee4ab (patch)
treed111468592eb236876b0274a80e52d873df6f187
parent4dc5d0b2ddddc39cf8e10950799e8d2d030cdd17 (diff)
downloaddotfiles-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.zsh11
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