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.

55 lines
1.2 KiB

  1. # vim bindings
  2. bindkey -v
  3. export KEYTIMEOUT=1
  4. # Use vim cli mode
  5. bindkey '^P' up-history
  6. bindkey '^N' down-history
  7. # backspace and ^h working even after
  8. # returning from command mode
  9. bindkey '^?' backward-delete-char
  10. bindkey '^h' backward-delete-char
  11. # ctrl-w removed word backwards
  12. bindkey '^w' backward-kill-word
  13. # ctrl-r starts searching history backward
  14. bindkey '^r' history-incremental-search-backward
  15. if [ "light" = "$THEME_SWITCHER" ]; then
  16. ZSH_THEME="sunrise"
  17. else
  18. ZSH_THEME="agnoster"
  19. fi
  20. HIST_STAMPS="dd.mm.yyyy"
  21. COMPLETION_WAITING_DOTS="true"
  22. export EDITOR="vim"
  23. export goschneider="$HOME/go/src/git.webschneider.org"
  24. source $HOME/.dotfiles/zsh/aliases.zsh
  25. # Shell completion for gulp
  26. if hash gulp 2&> /dev/null; then
  27. eval "$(gulp --completion=zsh)"
  28. fi
  29. # fzf settings
  30. if hash rg 2&> /dev/null; then
  31. # Use ripgrep instead of find and exclude .gitignored files
  32. export FZF_DEFAULT_COMMAND='rg --files'
  33. export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
  34. fi
  35. swth()
  36. {
  37. if [ "$THEME_SWITCHER" = "light" ]; then
  38. unset THEME_SWITCHER
  39. source ~/.zshrc
  40. else
  41. export THEME_SWITCHER="light"
  42. source ~/.zshrc
  43. fi
  44. }