Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Solarized Colors as Bash Variables (ansi colors, xterm-256)
#!/bin/bash
BASE03="\[\033[38;5;234m\]"
BASE02="\[\033[38;5;235m\]"
BASE01="\[\033[38;5;240m\]"
BASE00="\[\033[38;5;241m\]"
BASE0="\[\033[38;5;244m\]"
BASE1="\[\033[38;5;245m\]"
BASE2="\[\033[38;5;254m\]"
BASE3="\[\033[38;5;230m\]"
YELLOW="\[\033[38;5;136m\]"
ORANGE="\[\033[38;5;166m\]"
RED="\[\033[38;5;160m\]"
MAGENTA="\[\033[38;5;125m\]"
VIOLET="\[\033[38;5;61m\]"
BLUE="\[\033[38;5;34m\]"
CYAN="\[\033[38;5;37m\]"
GREEN="\[\033[38;5;64m\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.