Mercurial > ec-dotfiles
comparison rc/bashrc @ 694:92c1a021e8a1
[bashrc] Let's just assume it's been fixed in dfbsd
author | nanaya <me@nanaya.pro> |
---|---|
date | Sun, 23 Oct 2022 01:57:32 +0900 |
parents | 37a2470380f2 |
children | 26568ef0d05a |
comparison
equal
deleted
inserted
replaced
693:37a2470380f2 | 694:92c1a021e8a1 |
---|---|
252 case "${TERM}" in | 252 case "${TERM}" in |
253 xterm*|screen*|dtterm*|tmux*) | 253 xterm*|screen*|dtterm*|tmux*) |
254 PROMPT_COMMAND='echo -ne "\033]0;'"${USER:-${LOGNAME:-$USERNAME}}@$(uname -n)"': ${PWD}\007";'"${PROMPT_COMMAND}" | 254 PROMPT_COMMAND='echo -ne "\033]0;'"${USER:-${LOGNAME:-$USERNAME}}@$(uname -n)"': ${PWD}\007";'"${PROMPT_COMMAND}" |
255 if [ "${_uid}" = "0" ]; then | 255 if [ "${_uid}" = "0" ]; then |
256 PS1='\[\e[1;31m\]\u@\h:\w\$\[\e[0m\] ' | 256 PS1='\[\e[1;31m\]\u@\h:\w\$\[\e[0m\] ' |
257 elif [ "$(uname)" != "DragonFly" ]; then | 257 else |
258 # DragonFly's Bash is a bit buggy. | |
259 PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;36m\]\w\[\e[0m\]\$ ' | 258 PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;36m\]\w\[\e[0m\]\$ ' |
260 fi | 259 fi |
261 ;; | 260 ;; |
262 esac | 261 esac |
263 | 262 |