12 lines
357 B
Bash
12 lines
357 B
Bash
export TERM="ansi"
|
|
export CLICOLORS=1
|
|
username="\[\033[0;32m\]\u\[\033[m\]"
|
|
host="\[\033[4;32m\]\h\[\033[m\]"
|
|
directory="\[\033[0;36m\]\w\[\033[m\]"
|
|
error_marker="(\$(if [[ \$? == 0 ]]; then echo '\[\033[0;32m\]\342\234\223'; else echo '\[\033[0;31m\]\342\234\227'; fi)\[\033[m\])"
|
|
|
|
export PS1="${username}@${host}:${directory} ${error_marker} "
|
|
|
|
#✓
|
|
#✗
|