Skip to content

Instantly share code, notes, and snippets.

View harisund's full-sized avatar

Hari Sundararajan harisund

View GitHub Profile
@harisund
harisund / bash_prompt.sh
Created March 11, 2020 09:20
better bash prompt for git repos
# Colors
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[0;37m\]"
COLOR_NONE="\[\e[0m\]"
@harisund
harisund / bash_prompt.sh
Created March 11, 2020 09:20
better bash prompt for git repos
# Colors
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[0;37m\]"
COLOR_NONE="\[\e[0m\]"
@harisund
harisund / ConsoleBlanking
Last active May 11, 2016 20:46
Disabling console blanking
setterm -blank 0
cat /sys/module/kernel/parameters/consoleblank
http://unix.stackexchange.com/questions/8056/disable-screen-blanking-on-text-console
http://www.cyberciti.biz/tips/linux-disable-screen-blanking-screen-going-blank.html
setterm -powersave off
xset s noblank
xset s off
xset -dpms