cw.install 1.0 KB

123456789101112131415161718192021222324252627
  1. post_install () {
  2. echo -e "\033[32;1m==>\033[0m \033[1mUpdating definition files...\033[0m"
  3. /usr/bin/cwu /usr/lib/cw /usr/bin/cw > /dev/null
  4. echo -e ""
  5. echo -e "Complete, definitions are stored in: /usr/lib/cw"
  6. echo -e "\033[1mFor bash:\033[0m place 'export PATH=\"/usr/lib/cw:\$PATH\"'"
  7. echo -e "at the end of ~/.bash_profile(or /etc/profile globally)"
  8. echo -e ""
  9. echo -e "\033[1mFor tcsh:\033[0m place 'setenv PATH \"/usr/lib/cw:\$PATH\"'"
  10. echo -e "at the end of ~/.login(or /etc/csh.login globally)"
  11. echo -e ""
  12. echo -e "\033[1mFor zsh:\033[0m place:"
  13. echo -e "'export PATH=\"/usr/lib/cw:\$PATH\"'"
  14. echo -e "at the end of ~/.zshrc(or /etc/zprofile globally)"
  15. echo -e ""
  16. echo -e "Or to automate the two lines above use the "colorcfg" command."
  17. echo -e "(and add optional anti-coloring precautions)"
  18. echo -e "Once the desired shell(s) are setup, use the "color" command,"
  19. echo -e "or the environmental variable NOCOLOR=1 to turn"
  20. echo -e "color wrapping on and off."
  21. }
  22. post_upgrade() {
  23. post_install
  24. }