psvar 806 B

123456789101112131415161718192021222324252627
  1. #### Copied from demure ####
  2. #### https://github.com/demure/ ####
  3. ### this changes the PS1 ###
  4. ## for main computer ##
  5. if [ $HOSTNAME == 'daemoneye-of-fun' ]; then
  6. if [ $LOGNAME != 'root' ]; then
  7. export PS1="\`if [ \$? != 0 ]; then echo \[\e[31m\]\$?\[\e[0m\]; fi\`\[\e[36m\][\h]\W> \[\e[0m\]"
  8. else
  9. export PS1="\[\e[0;31m\]\W ->\[\e[m\] "
  10. fi
  11. ## for IRSSI account ##
  12. elif [ $HOSTNAME == 'ma.sdf.org' ]; then
  13. if [ $LOGNAME != 'root' ]; then
  14. export PS1="\`if [ \$? != 0 ]; then echo \[\e[32m\]\$?\[\e[0m\]; fi\`\[\e[32m\][\H]\W> \[\e[0m\]"
  15. fi
  16. ## for media box ##
  17. elif [ $HOSTNAME == 'daemoneye-media' ]; then
  18. if [ $LOGNAME != 'root' ]; then
  19. export PS1="\`if [ \$? != 0 ]; then echo \[\e[31m\]\$?\[\e[0m\]; fi\`\[\e[36m\]\W -> \[\e[0m\]"
  20. else
  21. export PS1="\[\e[0;31m\]\W ->\[\e[m\] "
  22. fi
  23. fi