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