Skip to content

Instantly share code, notes, and snippets.

@hatoba29
Last active October 12, 2020 01:10
Show Gist options
  • Save hatoba29/91ba61131d3795d1ff710d5c782d86e2 to your computer and use it in GitHub Desktop.
Save hatoba29/91ba61131d3795d1ff710d5c782d86e2 to your computer and use it in GitHub Desktop.
shell script for setting color scheme in TTY
if [ "$TERM" = "linux" ]; then
echo -en "\e]P02D3139" #black
echo -en "\e]P87F848E" #darkgrey
echo -en "\e]P1F44747" #darkred
echo -en "\e]P9E06C75" #red
echo -en "\e]P298C379" #darkgreen
echo -en "\e]PA98C379" #green
echo -en "\e]P3E5C07B" #brown
echo -en "\e]PBE5C07B" #yellow
echo -en "\e]P4528BFF" #darkblue
echo -en "\e]PC61AFEF" #blue
echo -en "\e]P57E0097" #darkmagenta
echo -en "\e]PDC678DD" #magenta
echo -en "\e]P656B6C2" #darkcyan
echo -en "\e]PE56B6C2" #cyan
echo -en "\e]P7D7DAE0" #lightgrey
echo -en "\e]PFD7DAE0" #white
clear #for background artifacting
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment