appearance.zsh 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. ls --color -d . &>/dev/null 2>&1 && alias ls='ls --color=tty' || alias ls='ls -G'
  10. fi
  11. #setopt no_beep
  12. setopt auto_cd
  13. setopt multios
  14. setopt cdablevarS
  15. if [[ x$WINDOW != x ]]
  16. then
  17. SCREEN_NO="%B$WINDOW%b "
  18. else
  19. SCREEN_NO=""
  20. fi
  21. # Apply theming defaults
  22. PS1="%n@%m:%~%# "
  23. # git theming default: Variables for theming the git info prompt
  24. ZSH_THEME_GIT_PROMPT_PREFIX="git:(" # Prefix at the very beginning of the prompt, before the branch name
  25. ZSH_THEME_GIT_PROMPT_SUFFIX=")" # At the very end of the prompt
  26. ZSH_THEME_GIT_PROMPT_DIRTY="*" # Text to display if the branch is dirty
  27. ZSH_THEME_GIT_PROMPT_CLEAN="" # Text to display if the branch is clean
  28. # Setup the prompt with pretty colors
  29. setopt prompt_subst
  30. # Load the theme
  31. source "$ZSH/themes/$ZSH_THEME.zsh-theme"