Change new-scratch folder name to include full ISO date

This commit is contained in:
Arti Zirk 2017-04-26 10:22:52 +03:00
parent e1732860fd
commit e18877b394

View File

@ -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