.zshrc 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # _
  2. # ___ ___| |_ ___ ___
  3. # _|- _|_ -| | _| _|
  4. #|_|___|___|_|_|_| |___|
  5. # .zshrc (uses prezto for configuration)
  6. # Date: 17.06.2021
  7. # Source Prezto to initialize.
  8. if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
  9. source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
  10. fi
  11. # Most important - Vi Mode with small key timeout
  12. bindkey -v
  13. export KEYTIMEOUT=1
  14. # adjust PATH
  15. PATH=$HOME/documents/bin/:$PATH
  16. PATH=$HOME/.scripts/tools:$PATH
  17. export PATH=$PATH:/usr/local/go/bin:$HOME/documents/go/bin/
  18. # Set GOPATH in case of golang installation
  19. export GOPATH=$HOME/documents/go
  20. # Include FZF Keybindings
  21. source /usr/share/fzf/key-bindings.zsh
  22. source /usr/share/fzf/completion.zsh
  23. # FZF configuration
  24. export FZF_DEFAULT_COMMAND='fd --type f'
  25. export FZF_DEFAULT_OPTS="--height 70% --inline-info --preview='head -n$LINES {}'"
  26. # Source own .bash_aliases file for shell aliases
  27. [ -f ~/.bash_aliases ] && source ~/.bash_aliases
  28. # Configure Prompt (include hostname, good for SSH Session)
  29. autoload -Uz promptinit
  30. promptinit
  31. prompt cloud "($(hostname))" yellow red
  32. # Virtual Env. for Python
  33. export WORKON_HOME=~/documents/tools/pyvirtenvs
  34. source /usr/bin/virtualenvwrapper.sh
  35. # commands (docs: https://virtualenvwrapper.readthedocs.io/en/latest/)
  36. #
  37. # mkvirtualenv <env-name> # create new env
  38. # workon <env-name> # switch env
  39. # lssitepackages # list packages
  40. # $VIRTUAL_ENV (contains PATH of current venv)
  41. # For terminal colors with pywal
  42. cat ~/.cache/wal/sequences
  43. # export important global variables
  44. export SHELL=/usr/bin/zsh
  45. export EDITOR=nvim
  46. export HISTFILE=$HOME/.zsh_history
  47. # dotfiles
  48. export DOTS=$HOME/documents/dots
  49. export dots=$HOME/documents/dots
  50. # Damn! Speeds up repeated key presses (jk in vim is better with that)
  51. xset r rate 300 50