-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshenv
44 lines (37 loc) · 962 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
39
40
41
42
43
44
#==============================================================================#
# Environment Variables
#==============================================================================#
export VISUAL=vim
export EDITOR="$VISUAL"
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='mvim'
fi
# sbin
if [ -d "/usr/local/sbin" ]; then
export PATH="/usr/local/sbin:$PATH";
fi
# Custom Scripts
USER_SCRIPTS="$HOME/.bin";
if [ -d $USER_SCRIPTS ]; then
export PATH="$USER_SCRIPTS:$PATH";
fi
# Deno setup
DENO_DIR="$HOME/.deno/bin"
if [ -d $DENO_DIR ]; then
export PATH="$DENO_DIR:$PATH";
fi
# Rust & Cargo setup
CARGO_DIR="$HOME/.cargo"
if [ -d $CARGO_DIR ]; then
source "$HOME/.cargo/env"
fi
# NVM setup
if [ "$(uname -s)" = "Darwin" ]; then
NVM_DIR="/usr/local/opt/nvm";
else
NVM_DIR="$HOME/.nvm";
fi
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm