Skip to content

Instantly share code, notes, and snippets.

@es0m
Created June 29, 2018 18:35
Show Gist options
  • Save es0m/aa799566e570e2cfa61120ead67ae132 to your computer and use it in GitHub Desktop.
Save es0m/aa799566e570e2cfa61120ead67ae132 to your computer and use it in GitHub Desktop.
makes an ansi color interpolation of a string for bash
fff = "(•_•) ( •_•)>⌐■-■ (⌐■_■)"
prompt = ""
for i, f in enumerate(fff):
prompt += "\\033[38;5;0;48;5;{}m{}".format(232+i,f)
print(prompt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment