]> git.r.bdr.sh - rbdr/dotfiles/blob - runcoms/zshrc
Use italic and tmux segments
[rbdr/dotfiles] / runcoms / zshrc
1 ################################################################################
2 # Load Functions
3 ################################################################################
4 source "${ZDOTDIR:-$HOME}/.dotfiles/zsh/functions/git-info.zsh"
5 source "${ZDOTDIR:-$HOME}/.dotfiles/zsh/functions/dotenv.zsh"
6 source "${ZDOTDIR:-$HOME}/.dotfiles/zsh/functions/graphviz.zsh"
7 source "${ZDOTDIR:-$HOME}/.dotfiles/zsh/functions/short-uptime.zsh"
8
9 ################################################################################
10 # Load Modules
11 ################################################################################
12 source "${ZDOTDIR:-$HOME}/.dotfiles/zsh/modules/environment.zsh"
13 source "${ZDOTDIR:-$HOME}/.dotfiles/zsh/modules/editor.zsh"
14 source "${ZDOTDIR:-$HOME}/.dotfiles/zsh/modules/history.zsh"
15 source "${ZDOTDIR:-$HOME}/.dotfiles/zsh/modules/directory.zsh"
16 source "${ZDOTDIR:-$HOME}/.dotfiles/zsh/modules/prompt.zsh"
17 source "${ZDOTDIR:-$HOME}/.dotfiles/zsh/modules/vendor/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
18 source "${ZDOTDIR:-$HOME}/.dotfiles/zsh/modules/completion.zsh"
19 source "${ZDOTDIR:-$HOME}/.dotfiles/zsh/modules/aliases.zsh"
20
21 ################################################################################
22 # ENV VARIABLES
23 ################################################################################
24 # Terminal related
25 export TERM=xterm-256color-italic
26
27 # Paths
28 # export JAVA_HOME=$(/usr/libexec/java_home) # Enable if using JDK, otherwise disable for performance
29 export GOPATH=$HOME/Projects/go
30 export NODE_PATH=/usr/local/lib/node_modules:$NODE_PATH
31 export ANDROID_HOME=$HOME/Library/Android/sdk
32 export ANDROID_NDK_HOME=$HOME/Library/Android/sdk/ndk-bundle
33 export NVM_DIR=$HOME/.nvm
34 export PATH=/usr/local/bin:/usr/local/sbin:$PATH
35 export PATH=$PATH:$HOME/Library/Python/2.7/bin
36 export PATH=$PATH:$HOME:/usr/local/opt/go/libexec/bin:${GOPATH//://bin:}/bin
37 export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_NDK_HOME:/Applications/calibre.app/Contents/MacOS
38
39 # Editor.
40 export EDITOR="vim"
41 export VISUAL="vim"
42
43 # Python related variables
44 export VIRTUAL_ENV_DISABLE_PROMPT=1
45 export WORKON_HOME=$HOME/.virtualenvs
46 export PROJECT_HOME=$HOME/Projects
47 export VIRTUALENVWRAPPER_PYTHON="/usr/local/bin/python"
48
49 # GPG
50 export GPG_TTY=$(tty)
51
52 # FZF Config
53 export FZF_DEFAULT_COMMAND='/usr/local/bin/rg --color never --files --hidden -g \!.git'
54 export FZF_DEFAULT_OPTS='--preview ''bat --style=numbers --color=always {} | head -500'''
55
56 ################################################################################
57 # SECRET ENV VARS!!
58 ################################################################################
59
60 if [[ -s "${ZDOTDIR:-$HOME}/.secrets.zsh" ]]; then
61 source "${ZDOTDIR:-$HOME}/.secrets.zsh"
62 fi
63
64 eval $(/usr/libexec/path_helper -s)