Skip to content

Instantly share code, notes, and snippets.

Created March 20, 2015 09:55
What would you like to do?
# Fish port of Marcin Kulik's newscratch script
# Read more and fin \d bash/zsh scripts here:
function new-scratch
set cur_dir "$HOME/scratch"
set dir_suffix (date +'%s')
set new_dir "$HOME/tmp/scratch-$dir_suffix"
mkdir -p $new_dir
ln -nfs $new_dir $cur_dir
cd $cur_dir
echo "New scratch dir ready for grinding ;>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment