-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
87 lines (69 loc) · 2 KB
/
zshrc
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
78
79
80
81
82
83
84
85
86
87
if [ -d "$HOME/.pyenv" ]; then
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init - zsh)"
else
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init - zsh)"
fi
export PYTHON_CONFIGURE_OPTS="--enable-shared"
pyenv install -s 2.7.12
pyenv install -s 3.3.6
pyenv install -s 3.4.5
pyenv install -s 3.5.2
pyenv install -s pypy-4.0.1
pyenv rehash
pyenv global 3.4.5 3.5.2 system
PATH=$PATH:~/.local/bin
if [ -d "$HOME/.rbenv" ]; then
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init - )"
else
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
cd ~/.rbenv && src/configure && make -C src
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init - )"
fi
source $HOME/.antigen.zsh
antigen use oh-my-zsh
BULLETTRAIN_PROMPT_ADD_NEWLINE=false
BULLETTRAIN_STATUS_EXIT_SHOW=true
BULLETTRAIN_GIT_FETCH=true
BULLETTRAIN_VIRTUAL_ENV_PREFIX=""
HYPHEN_INSENSITIVE="true"
DISABLE_AUTO_TITLE="true"
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
antigen bundle battery
antigen bundle common-aliases
antigen bundle encode64
antigen bundle gem
antigen bundle git
antigen bundle pip
antigen bundle python
antigen bundle sudo
antigen bundle wd
antigen bundle Vifon/deer
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle sharat87/zsh-vim-mode
antigen theme gilmrjc/bullet-train-oh-my-zsh-theme bullet-train
antigen apply
autoload -U deer
zle -N deer
bindkey '\ek' deer
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='nvim'
fi
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/proyectos
if [[ -f "$HOME/.local/bin/virtualenvwrapper.sh" ]]; then
source $HOME/.local/bin/virtualenvwrapper.sh
fi
export GOPATH=$HOME/.go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
alias nv=nvim