Created
November 19, 2024 12:45
-
-
Save iso2022jp/0a4cbef1fde743dcd5a3ad60c02e3c6f to your computer and use it in GitHub Desktop.
π€ Bash emoji clock prompt
This file contains hidden or 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
eclock () { echo -e $( printf '\\U1F5%x' $(( 0x4f + $(date +%-I) + ($(date +%-M) >= 30) * 12 )) ) ; } | |
export PS1='$(eclock) '"$PS1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment