m7z2wq
Last Updated: September 24, 2016
·
108
· 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 .
}