Skip to content

Instantly share code, notes, and snippets.

@rxw1
Last active August 29, 2015 14:15
Show Gist options
  • Save rxw1/c3f489c3e6cfe4ecf62a to your computer and use it in GitHub Desktop.
Save rxw1/c3f489c3e6cfe4ecf62a to your computer and use it in GitHub Desktop.
Zsh function: move pwd to date
# Move current working directory to current date %H%M%S like ../005347
mvPwdToDate () {
dir=../$(zstat -F '%H%M%S' +ctime $PWD)
mkdir -p $dir && mv -iv $PWD $dir && cd .
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment