Created
October 10, 2015 09:28
-
-
Save egel/c75d4db0d986538b29ca to your computer and use it in GitHub Desktop.
Sample configuration installer for 256 color support for your xterm
This file contains 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
#!/bin/bash | |
# Run this program to add 256 color support for your xterm | |
green='\e[0;32m' # '\e[1;32m' is too bright for white bg. | |
red='\e[0;31m' | |
yellow='\e[0;33m' | |
purple='\e[0;35m' | |
endColor='\e[0m' | |
echo -e "${purple}====== Adding config to ~/.bashrc ======${endColor}" | |
echo "" >> ~/.bashrc && \ | |
echo "# Manually add 256colors support for xTerm and tmux" >> ~/.bashrc && \ | |
echo "alias tmux=\"TERM=screen-256color-bce tmux\"" >> ~/.bashrc | |
echo -e "${green}✔ Done${endColor}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment