-
Notifications
You must be signed in to change notification settings - Fork 3
/
zshenv
77 lines (59 loc) · 1.72 KB
/
zshenv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
SAVEHIST=1000000
HISTFILE=~/.zsh_history
local WORDCHARS='*?_[]~=&;!#$%^(){}<>'
[[ -s ~/.aliases ]] && source ~/.aliases
setopt share_history
setopt hist_expire_dups_first
setopt hist_find_no_dups
setopt ignoreeof # Same as setting IGNOREEOF=10 (Ctrl+d x10 to close shell)
export HISTSIZE=100000
export HISTFILESIZE=100000
export EDITOR="nvim"
export VISUAL="nvim"
export XDG_CONFIG_HOME="$HOME/.config"
export RIPGREP_CONFIG_PATH="$XDG_CONFIG_HOME/.ripgreprc"
export PATH="$HOME/.local/bin:$PATH"
# gpg tty, passphrases prob
export GPG_TTY=$(tty)
# Work
export DJANGO_SETTINGS_MODULE=settings
# export PYTHONPATH=.
export sde_admin_repo_path="$HOME/dev/sde-admin/"
export sde_build_repo_path="$HOME/dev/sde-build/"
# fnm
# export PATH=/home/jhaine/.fnm:$PATH
# eval "`fnm env`"
# Yava
export M2_HOME=/opt/maven
export MAVEN_HOME=/opt/maven
export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
export PATH="${M2_HOME}/bin:${PATH}"
# Go
export GOPATH="$HOME/go"
export PATH="$GOPATH/bin:$PATH"
# Rust
export PATH="$HOME/.cargo/env:$PATH"
export PATH="$HOME/.cargo/bin:$PATH"
# Python
export VIRTUALENVWRAPPER_PYTHON=$(which python3)
# Adding wsl-open as a browser for Windows
if [[ $(uname -r) =~ WSL2$ ]]; then
if [[ -z $BROWSER ]]; then
export BROWSER="wsl-open"
fi
fi
# big brother
export DOTNET_CLI_TELEMETRY_OPTOUT=true
export NEXT_TELEMETRY_DISABLED=1
# Fix GitGutter CursorHold in vim
export VIM_GITGUTTER_TEST=1
# prevent the dreaded pip install -r requirements.txt in system python
# use gpip() instead
export PIP_REQUIRE_VIRTUALENV=true
# postgres local db
export PGUSER=sdlc
export PGPASSWORD=sdlc
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"