theme-and-appearance.zsh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # ls colors
  2. autoload colors; colors;
  3. export LSCOLORS="Gxfxcxdxbxegedabagacad"
  4. #export LS_COLORS
  5. # Enable ls colors
  6. if [ "$DISABLE_LS_COLORS" != "true" ]
  7. then
  8. # Find the option for using colors in ls, depending on the version: Linux or BSD
  9. if [[ "$(uname -s)" == "NetBSD" ]]; then
  10. # On NetBSD, test if "gls" (GNU ls) is installed (this one supports colors);
  11. # otherwise, leave ls as is, because NetBSD's ls doesn't support -G
  12. gls --color -d . &>/dev/null 2>&1 && alias ls='gls --color=tty'
  13. else
  14. ls --color -d . &>/dev/null 2>&1 && alias ls='ls --color=tty' || alias ls='ls -G'
  15. fi
  16. fi
  17. #setopt no_beep
  18. setopt auto_cd
  19. setopt multios
  20. setopt cdablevarS
  21. if [[ x$WINDOW != x ]]
  22. then
  23. SCREEN_NO="%B$WINDOW%b "
  24. else
  25. SCREEN_NO=""
  26. fi
  27. # Apply theming defaults
  28. PS1="%n@%m:%~%# "
  29. # git theming default: Variables for theming the git info prompt
  30. ZSH_THEME_GIT_PROMPT_PREFIX="git:(" # Prefix at the very beginning of the prompt, before the branch name
  31. ZSH_THEME_GIT_PROMPT_SUFFIX=")" # At the very end of the prompt
  32. ZSH_THEME_GIT_PROMPT_DIRTY="*" # Text to display if the branch is dirty
  33. ZSH_THEME_GIT_PROMPT_CLEAN="" # Text to display if the branch is clean
  34. # Setup the prompt with pretty colors
  35. setopt prompt_subst