Last Updated: September 24, 2016
·
237
· rwilhelm

Create parent working directory with date

zmodload -F zsh/stat b:zstat

mvPwdToDate() {
  dir=../$(zstat -F '%H%M%S' +ctime $PWD)
  mkdir $dir && mv $PWD $dir && cd .
}