Skip to content

Instantly share code, notes, and snippets.

@Cacodaimon
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cacodaimon/9109981 to your computer and use it in GitHub Desktop.
Save Cacodaimon/9109981 to your computer and use it in GitHub Desktop.
#!/bin/bash
HISTCONTROL=ignoreboth
shopt -s histappend
HISTSIZE=10000
HISTFILESIZE=20000
export EDITOR=nano
alias ls='ls --color'
alias ll='ls -lah'
alias ssh='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
red='\[\e[0;31m\]'
RED='\[\e[1;31m\]'
blue='\[\e[0;34m\]'
BLUE='\[\e[1;34m\]'
cyan='\[\e[0;36m\]'
CYAN='\[\e[1;36m\]'
NC='\[\033[0m\]' # no color
black='\[\e[0;30m\]'
BLACK='\[\e[1;30m\]'
green='\[\e[0;32m\]'
GREEN='\[\e[1;32m\]'
yellow='\[\e[0;33m\]'
YELLOW='\[\e[1;33m\]'
magenta='\[\e[0;35m\]'
MAGENTA='\[\e[1;35m\]'
white='\[\e[0;37m\]'
WHITE='\[\e[1;37m\]'
if [ `whoami` = 'root' ]; then
USER_COLOR="$RED"
else
USER_COLOR="$GREEN"
fi
PS1="$WHITE[$GREEN\u$RED@$CYAN\h $YELLOW\W$WHITE]$USER_COLOR#$NC "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment