All of my important config files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
764 B

  1. if [ "light" = "$THEME_SWITCHER" ]; then
  2. ZSH_THEME="sunrise"
  3. else
  4. ZSH_THEME="agnoster"
  5. fi
  6. HIST_STAMPS="dd.mm.yyyy"
  7. COMPLETION_WAITING_DOTS="true"
  8. export EDITOR="vim"
  9. export goschneider="$HOME/go/src/git.webschneider.org"
  10. source $HOME/.dotfiles/zsh/aliases.zsh
  11. # Shell completion for gulp
  12. if hash gulp 2&> /dev/null; then
  13. eval "$(gulp --completion=zsh)"
  14. fi
  15. # fzf settings
  16. if hash ag 2&> /dev/null; then
  17. # Use ag instead of find and exclude .gitignored files
  18. export FZF_DEFAULT_COMMAND='ag -g ""'
  19. export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
  20. fi
  21. swth()
  22. {
  23. if [ "$THEME_SWITCHER" = "light" ]; then
  24. unset THEME_SWITCHER
  25. source ~/.zshrc
  26. else
  27. export THEME_SWITCHER="light"
  28. source ~/.zshrc
  29. fi
  30. }