123456789101112131415161718192021222324252627 |
- #### Copied from demure ####
- #### https://github.com/demure/ ####
- ### this changes the PS1 ###
- ## for main computer ##
- if [ $HOSTNAME == 'daemoneye-of-fun' ]; then
- if [ $LOGNAME != 'root' ]; then
- export PS1="\`if [ \$? != 0 ]; then echo \[\e[31m\]\$?\[\e[0m\]; fi\`\[\e[36m\][\h]\W> \[\e[0m\]"
- else
- export PS1="\[\e[0;31m\]\W ->\[\e[m\] "
- fi
- ## for IRSSI account ##
- elif [ $HOSTNAME == 'ma.sdf.org' ]; then
- if [ $LOGNAME != 'root' ]; then
- export PS1="\`if [ \$? != 0 ]; then echo \[\e[32m\]\$?\[\e[0m\]; fi\`\[\e[32m\][\H]\W> \[\e[0m\]"
- fi
- ## for media box ##
- elif [ $HOSTNAME == 'daemoneye-media' ]; then
- if [ $LOGNAME != 'root' ]; then
- export PS1="\`if [ \$? != 0 ]; then echo \[\e[31m\]\$?\[\e[0m\]; fi\`\[\e[36m\]\W -> \[\e[0m\]"
- else
- export PS1="\[\e[0;31m\]\W ->\[\e[m\] "
- fi
- fi
|