aboutsummaryrefslogtreecommitdiffstats
path: root/.zsh.after
diff options
context:
space:
mode:
Diffstat (limited to '.zsh.after')
-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