From 74546d0dbfc131bdeaa95fd43bb44262f0a364f0 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sun, 27 Jul 2014 12:32:27 +0900 Subject: [PATCH] add function mkdd --- shrc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/shrc b/shrc index 05f50da..4033049 100755 --- a/shrc +++ b/shrc @@ -320,6 +320,7 @@ alias pstree="LANG=C pstree" alias cp="cp -v" alias mv="mv -v" alias rm="rm -v" +alias mkdir="mkdir -v" alias psaux="ps auxww" alias q=exit __safe_alias e3=e3em @@ -887,6 +888,11 @@ tb(){ mv "$@" "$__tb" } +mkdd(){ + _d=`date +%Y%m%d-%H%M%S` && \ + mkdir -p "$_d" +} + mkcd(){ if test -z "$1" then @@ -904,8 +910,8 @@ mkcd(){ mkcdd(){ # make and change date directory - _d=`date +%Y%m%d-%H%M%S` - mkcd "$_d" + _d=`date +%Y%m%d-%H%M%S` && \ + mkcd "$_d" } if test -n "$TMUX" && null type reattach-to-user-namespace