-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshenv
30 lines (24 loc) · 952 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
# This file is always sourced, so it should set environment variables which
# need to be updated frequently. PATH (or its associated counterpart path)
# is a good example because you probably don't want to restart your whole
# session to make it update. By setting it in that file, reopening a terminal
# emulator will start a new Zsh instance with the PATH value updated.
# Alias definitions.
if [ -f ~/.aliases ]; then
. ~/.aliases
fi
# Bookmarks. See https://threkk.medium.com/how-to-use-bookmarks-in-bash-zsh-6b8074e40774
if [ -d "$HOME/.bookmarks" ]; then
export CDPATH=".:$HOME/.bookmarks:/"
alias goto="cd -P"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
export PATH="$HOME/.cargo/bin:$PATH"
source "$HOME/.cargo/env"