Created
September 6, 2015 20:18
-
-
Save clyang/4edbb710699171de7d6b to your computer and use it in GitHub Desktop.
記錄超長bash history
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
HOSTNAME="$(hostname)" | |
HOSTNAME_SHORT="${HOSTNAME%%.*}" | |
HISTFILE="${HOME}/.history/$(date -u +%Y/%m/%d.%H.%M.%S)_${HOSTNAME_SHORT}_$$" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment