Skip to content

Instantly share code, notes, and snippets.

@gmgent
Created March 8, 2011 18:55
Show Gist options
  • Select an option

  • Save gmgent/860767 to your computer and use it in GitHub Desktop.

Select an option

Save gmgent/860767 to your computer and use it in GitHub Desktop.
## Colors
# colors for misc things
export TERM=xterm-color
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'
export CLICOLOR=1
# Set colors
export LS_COLORS='di=1;36:fi=0:ln=4;34:pi=5:so=4;5:bd=5:cd=5:or=4;91:mi=4;92:ex=35:*.rb=90'
# used in command prompt
NM="\[\033[0;38m\]" #means no background and white lines
HI="\[\033[0;37m\]" #change this for letter colors
HII="\[\033[0;31m\]" #change this for letter colors
SI="\[\033[0;33m\]" #this is for the current directory
IN="\[\033[0m\]"
## Command Prompt ##
if [ ${USER} == "root" ];then
export PS1="$HII\w$NM $ $IN"
fi
if [ ${USER} == "myUserName" ];then
#export PS1="$SI\w$NM $ $IN"
export PS1="$SI\w$NM $ $IN"
fi
# Set terminal window title
export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*} ${PWD}"; echo -ne "\007"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment