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 .
}
Written by rw
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#