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.

46 lines
1.0 KiB

2 years ago
4 months ago
2 years ago
4 months ago
4 months ago
2 years ago
4 months ago
4 months ago
4 months ago
2 years ago
4 months ago
2 years ago
4 months ago
4 months ago
4 months ago
4 months ago
2 years ago
4 months ago
4 months ago
2 years ago
4 months ago
4 months ago
  1. autoload -Uz compinit
  2. compinit
  3. HISTFILE="$HOME/.zsh_history"
  4. HISTSIZE=10000
  5. SAVEHIST=10000
  6. export PATH="/usr/local/ubin:$HOME/bin:$HOME/go/bin:$HOME/.cargo/bin:$PATH"
  7. export EDITOR="vim"
  8. export TERMINAL="konsole"
  9. export TERM="konsole"
  10. export BROWSER="firefox"
  11. export VIDEO="mpv"
  12. export OPENER="xdg-open"
  13. export ZDOTDIR="$HOME/.config/zsh"
  14. # Set emacs key binding.
  15. bindkey -e
  16. # Import functions.
  17. source "$ZDOTDIR/functions"
  18. # Set custom key bindings.
  19. zsh_add_config keybinds.zsh
  20. # Configure pure-prompt.
  21. export PURE_PROMPT_SYMBOL="$"
  22. if [ "$USER" = "root" ]; then
  23. export PURE_PROMPT_SYMBOL="#"
  24. fi
  25. export PROMPT_PURE_SSH_CONNECTION=YES
  26. zsh_fpath_plugin sindresorhus/pure
  27. autoload -U promptinit; promptinit
  28. zstyle :prompt:pure:user color cyan
  29. zstyle :prompt:pure:host color white
  30. zstyle ':prompt:pure:prompt:*' color white
  31. prompt pure
  32. # Add extra plugins.
  33. zsh_add_plugin zdharma-continuum/fast-syntax-highlighting
  34. ZSH_AUTOSUGGEST_STRATEGY=(history completion)
  35. zsh_add_plugin zsh-users/zsh-autosuggestions
  36. # Show off the system.
  37. fastfetch