zshuper/functions/new-scratch.zsh

10 lines
308 B
Bash
Raw Normal View History

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"
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"
}