Created
March 8, 2011 18:55
-
-
Save gmgent/860767 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## 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