-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
34 lines (26 loc) · 995 Bytes
/
.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
export PATH="$HOME/bin:$PATH"
source .exports
source .aliases
source .functions
# Autocorrect typos in path names when using `cd`
# shopt -s cdspell;
# Enable tab completion for `g` by marking it as an alias for `git`
if type _git &> /dev/null; then
complete -o default -o nospace -F _git g;
fi;
# Homebrew
export PATH="/opt/homebrew/bin:$PATH"
# Set up 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"
# Customize prompt
# %n is your account username.
# %m is your Mac's model name.
# %1~ means the current working directory path, where the ~ strips the $HOME directory location.
# %# means that the prompt will show # if the shell is running with root (administrator) privileges and % if it doesn't.
PROMPT='%F{magenta}oz%f:%1~ % '
# This should be the last line of the file
# For local changes
# Don't make edits below this
[ -f ".zshlocal" ] && source ".zshlocal"