fix some bugs in zsh local configuration

  - fix terminal type detection, especially when use tmux
  - fix man color output setting
  - reorder local zsh configurations