.zshrc 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 BROWSER=/usr/bin/librewolf
  47. export HISTFILE=$HOME/.zsh_history
  48. # dotfiles
  49. export DOTS=$HOME/documents/dots
  50. export dots=$HOME/documents/dots
  51. # Damn! Speeds up repeated key presses (jk in vim is better with that)
  52. xset r rate 300 50
  53. # Machine dependend settings
  54. source $HOME/.bash_custom