Skip to content

Instantly share code, notes, and snippets.

@egel
Created October 10, 2015 09:28
Show Gist options
  • Save egel/c75d4db0d986538b29ca to your computer and use it in GitHub Desktop.
Save egel/c75d4db0d986538b29ca to your computer and use it in GitHub Desktop.
Sample configuration installer for 256 color support for your xterm
#!/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