-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshenv
77 lines (53 loc) · 1.57 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
# JVM
export JAVA_OPTS=-Xmx768m
# Shell
export SHELL=/usr/local/bin/zsh
export VIM_APP_DIR=/Applications
export EDITOR="emacs"
export VISUAL='emacsclient -f'
export HOMEBREW_CC=clang
# so secret
source ~/.secrets/.secrets
# Speed up git completion
__git_files () {
_wanted files expl 'local files' _files
}
# Always pushd when changing directory
setopt auto_pushd
# Emacs bindings in vim insert mode
bindkey -M viins '' forward-char
bindkey -M viins '' backward-char
bindkey -M viins '^A' beginning-of-line
bindkey -M viins '^e' end-of-line
bindkey -M viins '^k' delete-line
# Bash style incremental search in vim insert mode
bindkey -M viins '^r' history-incremental-search-backward
bindkey -M viins '^s' history-incremental-search-forward
# jj to escape
bindkey -M viins 'jj' vi-cmd-mode
# Aliases
source ~/github/dotfiles/zsh/aliases
source ~/github/dotfiles/zsh/zsh_aliases
# Set gpg-agent info
export GPG_TTY=`tty`
export GPG_AGENT_INFO
# zsh completions?
fpath=(/usr/local/share/zsh-completions $fpath)
# Get rid of fzf?
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# Try autojump
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
# Go
export GOPATH=/Users/vera/go
export PROJECTS=~/github
# Node
export NODE_PATH=/usr/local/lib/node_modules
#HDF5
export HDF5_DIR=/opt/homebrew/
# For make in ~/.doom.d
export EMACS=/usr/local/opt/emacs-plus/bin/emacs
source "$HOME/.cargo/env"
export XDG_CONFIG_HOME=~/.config
export PATH="/opt/homebrew/anaconda3/bin:$PATH"
export PATH="/Users/vera/.local/bin:$PATH"
export USE_GKE_GCLOUD_AUTH_PLUGIN=True