Last active
August 29, 2015 14:15
-
-
Save rxw1/c3f489c3e6cfe4ecf62a to your computer and use it in GitHub Desktop.
Zsh function: move pwd to date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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