zshuper/functions/new-scratch.zsh
2016-06-19 04:11:34 +03:00

10 lines
301 B
Bash

# 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')"
mkdir -p $new_dir
ln -nfs $new_dir $cur_dir
cd $cur_dir
printf "New scratch dir ready for grinding ;>\n\n"
}