14 lines
476 B
Bash
Executable File
14 lines
476 B
Bash
Executable File
#!/bin/bash
|
|
|
|
case "$TERM" in
|
|
xterm-color|*-256color) color_prompt=yes;;
|
|
esac
|
|
|
|
if [ "$color_prompt" = yes ]; then
|
|
PS1="\n\[\033[00;36m\]\u@\h\[\033[00m\] \[\033[00;35m\][\[\033[00m\]\[\033[00;33m\]\w\[\033[00m\]\[\033[00;35m\]]\[\033[00m\] \[\033[00;32m\]o\[\033[00m\] \[\033[00;35m\][\[\033[00m\]\t\[\033[00;35m\]]\[\033[00m\]\n\[\033[00;35m\]>\[\033[00m\] "
|
|
else
|
|
PS1="\n\u@\h [\w] ○ [\t]\n> "
|
|
#PS1="\u@\h [\w] o [\t]\n> "
|
|
fi
|
|
unset color_prompt force_color_prompt
|