2016-06-19 04:11:34 +03:00
|
|
|
# Create quick scratch directory for testing and other stuff
|
|
|
|
function new-scratch {
|
|
|
|
local cur_dir="$HOME/scratch"
|
2017-04-26 10:22:52 +03:00
|
|
|
local new_dir="$HOME/tmp/scratch_$(date --iso-8601=seconds)"
|
2016-06-19 04:11:34 +03:00
|
|
|
mkdir -p $new_dir
|
|
|
|
ln -nfs $new_dir $cur_dir
|
|
|
|
cd $cur_dir
|
|
|
|
printf "New scratch dir ready for grinding ;>\n\n"
|
|
|
|
}
|