comparison rc/bashrc @ 352:038c28c748d0

The color prompt is broken-ish in DFBSD.
author Edho Arief <edho@myconan.net>
date Sat, 26 May 2012 16:10:27 +0000
parents 001cdf389aaf
children 8fcb3f1553cf
comparison
equal deleted inserted replaced
351:001cdf389aaf 352:038c28c748d0
168 PATH="${PATH}:${supbindir}" 168 PATH="${PATH}:${supbindir}"
169 break 169 break
170 fi 170 fi
171 done 171 done
172 172
173 PS1='[\u@\h \W]\$ '
173 case "${TERM}" in 174 case "${TERM}" in
174 xterm*|screen*|dtterm*) 175 xterm*|screen*|dtterm*)
175 PROMPT_COMMAND='echo -ne "\033]0;'"${USER:-$LOGNAME}@$(uname -n)"': ${PWD}\007";'"${PROMPT_COMMAND}" 176 PROMPT_COMMAND='echo -ne "\033]0;'"${USER:-$LOGNAME}@$(uname -n)"': ${PWD}\007";'"${PROMPT_COMMAND}"
176 PS1='[\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\] \[\e[0;36m\]\W\[\e[0m\]]\$ ' 177 # DragonFly's Bash is a bit buggy.
177 ;; 178 if [ "$(uname)" != "DragonFly" ]; then
178 *) 179 PS1='[\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\] \[\e[0;36m\]\W\[\e[0m\]]\$ '
179 PS1='[\u@\h \W]\$ ' 180 fi
180 ;; 181 ;;
181 esac 182 esac
182 183
183 if command -v vim > /dev/null 2>&1; then 184 if command -v vim > /dev/null 2>&1; then
184 alias vi=vim 185 alias vi=vim