aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--aliases.dot.link1
-rw-r--r--profile.dot.link11
2 files changed, 12 insertions, 0 deletions
diff --git a/aliases.dot.link b/aliases.dot.link
index 3d489ae..c6f7b6c 100644
--- a/aliases.dot.link
+++ b/aliases.dot.link
@@ -8,6 +8,7 @@ alias music="ncmpcpp"
alias mkdir="mkdir -p"
alias today="date +%Y%m%d"
alias month="date +%Y%m"
+alias now="date +%Y%m%d%I%M%S"
alias hashpw="mkpasswd -m sha-512"
alias stitle="screen -X title"
alias ttitle="tmux rename-window"
diff --git a/profile.dot.link b/profile.dot.link
index 2b502f0..81253fd 100644
--- a/profile.dot.link
+++ b/profile.dot.link
@@ -165,6 +165,17 @@ scd() {
ttitle `basename $*` > /dev/null 2>&1
}
+mknow() {
+ suffix="$1"
+ folder="`now`"
+
+ if [ ! -z "$suffix" ]; then
+ folder="$folder-$suffix"
+ fi
+
+ mkdir $folder && cd $folder
+}
+
mkday() {
suffix="$1"
folder="`today`"