Change new-scratch folder name to include full ISO date
This commit is contained in:
parent
e1732860fd
commit
e18877b394
@ -1,7 +1,7 @@
|
|||||||
# Create quick scratch directory for testing and other stuff
|
# Create quick scratch directory for testing and other stuff
|
||||||
function new-scratch {
|
function new-scratch {
|
||||||
local cur_dir="$HOME/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
|
mkdir -p $new_dir
|
||||||
ln -nfs $new_dir $cur_dir
|
ln -nfs $new_dir $cur_dir
|
||||||
cd $cur_dir
|
cd $cur_dir
|
||||||
|
Loading…
Reference in New Issue
Block a user