You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
357 B
11 lines
357 B
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} "
|
|
|
|
#✓
|
|
#✗
|
|
|