-
Notifications
You must be signed in to change notification settings - Fork 0
/
.myzshrc
57 lines (33 loc) · 1.28 KB
/
.myzshrc
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
# vim: syntax=zsh:
#Pick item but stay in the menu
bindkey -M menuselect "+" accept-and-menu-complete
# recognize comments
setopt interactivecomments
# Virtualenvwrapper things
export WORKON_HOME=$HOME/.virtualenvs
# export PROJECT_HOME=$HOME/Devel
# # Linux:
isLinux && source /usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh
# Mac
isMac && source /opt/homebrew/bin/virtualenvwrapper_lazy.sh
export PYENV_VIRTUALENVWRAPPER_PREFER_PYVENV="true"
# Control-B to download the currently copied URL.
bindkey -s "^B" "^Q download^J"
DISABLE_AUTO_TITLE=""
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# # Gradle linux install
# export PATH=$PATH:/opt/gradle/gradle-7.0/bin
# source ~/.myzshrc_work
isLinux && export HOMEBREW_BUNDLE_FILE="$ZFILES_HOME/linux/packages/Brewfile"
isMac && export HOMEBREW_BUNDLE_FILE="$ZFILES_HOME/mac/packages/Brewfile"
# add completions for dotfiles to be same as git
if type dotfiles &>/dev/null; then
compdef _git dotfiles
fi
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$SDKMAN_DIR/bin/sdkman-init.sh" ]] && source "$SDKMAN_DIR/bin/sdkman-init.sh"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm