Skip to content

Instantly share code, notes, and snippets.

@iso2022jp
Created November 19, 2024 12:45
Show Gist options
  • Save iso2022jp/0a4cbef1fde743dcd5a3ad60c02e3c6f to your computer and use it in GitHub Desktop.
Save iso2022jp/0a4cbef1fde743dcd5a3ad60c02e3c6f to your computer and use it in GitHub Desktop.
πŸ•€ Bash emoji clock prompt
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