-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshenv
38 lines (31 loc) · 923 Bytes
/
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
# path
export PATH=/usr/local/bin:$HOME/.local/bin:$PATH
# oh my zsh
export ZSH="$HOME/.oh-my-zsh"
# golang
if which go &> /dev/null; then
export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/go_workspace
export PATH=$PATH:$(go env GOPATH)/bin
fi
# cargo (rust)
if which cargo &> /dev/null; then
export PATH="$HOME/.cargo/bin:$PATH"
. "$HOME/.cargo/env"
fi
# ros
if [ -d "/opt/ros/melodic" ]; then
source /opt/ros/melodic/setup.zsh
fi
# editor
export EDITOR='vim'
# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# ruby
if [ -d "/opt/homebrew/opt/chruby/share/chruby" ]; then
source /opt/homebrew/opt/chruby/share/chruby/chruby.sh
source /opt/homebrew/opt/chruby/share/chruby/auto.sh
chruby ruby-3.1.3 # run chruby to see actual version
fi