From e18877b39416007f19bd70db60e3c66a14f41456 Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Wed, 26 Apr 2017 10:22:52 +0300 Subject: [PATCH] Change new-scratch folder name to include full ISO date --- functions/new-scratch.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/new-scratch.zsh b/functions/new-scratch.zsh index 3f8871e..63044e2 100644 --- a/functions/new-scratch.zsh +++ b/functions/new-scratch.zsh @@ -1,7 +1,7 @@ # Create quick scratch directory for testing and other stuff function new-scratch { local cur_dir="$HOME/scratch" - local new_dir="$HOME/tmp/scratch_$(date '+%d-%m-%Y')" + local new_dir="$HOME/tmp/scratch_$(date --iso-8601=seconds)" mkdir -p $new_dir ln -nfs $new_dir $cur_dir cd $cur_dir