.zshrc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. PATH=$HOME/.nimble/bin:$PATH
  18. export PATH=$PATH:/usr/local/go/bin:$HOME/documents/go/bin/
  19. # Set GOPATH in case of golang installation
  20. export GOPATH=$HOME/documents/go
  21. # Include FZF Keybindings
  22. source /usr/share/fzf/key-bindings.zsh
  23. source /usr/share/fzf/completion.zsh
  24. # FZF configuration
  25. export FZF_DEFAULT_COMMAND='fd --type f'
  26. export FZF_DEFAULT_OPTS="--height 70% --inline-info --preview='head -n$LINES {}'"
  27. # Source own .bash_aliases file for shell aliases
  28. [ -f ~/.bash_aliases ] && source ~/.bash_aliases
  29. # Configure Prompt (include hostname, good for SSH Session)
  30. autoload -Uz promptinit
  31. promptinit
  32. prompt cloud "($(hostname))" yellow red
  33. # Virtual Env. for Python
  34. export WORKON_HOME=~/documents/tools/pyvirtenvs
  35. source /usr/bin/virtualenvwrapper.sh
  36. # commands (docs: https://virtualenvwrapper.readthedocs.io/en/latest/)
  37. #
  38. # mkvirtualenv <env-name> # create new env
  39. # workon <env-name> # switch env
  40. # lssitepackages # list packages
  41. # $VIRTUAL_ENV (contains PATH of current venv)
  42. # For terminal colors with pywal
  43. cat ~/.cache/wal/sequences
  44. # export important global variables
  45. export SHELL=/usr/bin/zsh
  46. export TERM=xterm-256color
  47. export EDITOR=nvim
  48. export BROWSER=/usr/bin/firefox
  49. export HISTFILE=$HOME/.zsh_history
  50. # dotfiles
  51. export DOTS=$HOME/documents/dots
  52. export dots=$HOME/documents/dots
  53. # Damn! Speeds up repeated key presses (jk in vim is better with that)
  54. xset r rate 400 50
  55. # Machine dependend settings
  56. source $HOME/.bash_custom