Skip to content

Instantly share code, notes, and snippets.

@stevommmm
Created September 1, 2014 23:38
Show Gist options
  • Select an option

  • Save stevommmm/33c66e06a5aee8b59094 to your computer and use it in GitHub Desktop.

Select an option

Save stevommmm/33c66e06a5aee8b59094 to your computer and use it in GitHub Desktop.
.bashrc
# Exit if we aren't interactive
[ -z "$PS1" ] && return
shopt -s checkwinsize
lowpriv="\[\033[1;48;5;32m\]"
rootpriv="\[\033[1;48;5;1m\]"
dirpath="\[\033[38;5;220;48;5;238m\]"
reset="\[\033[00m\]"
if [[ ${EUID} == 0 ]] ; then
#Root
PS1="${rootpriv} \u@\h ${reset}${dirpath} \w \$${reset} "
else
PS1="${lowpriv} \u@\h ${reset}${dirpath} \w \$${reset} "
fi
alias ll="ls -alG"
# enable bash completion in interactive shells
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment