-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc
53 lines (40 loc) · 1.32 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
export ZSH="/Users/$USER/.oh-my-zsh"
# Display red dots while waiting for completion
COMPLETION_WAITING_DOTS="true"
function node_prompt_version {
if which node &> /dev/null; then
echo "%{$fg_bold[green]%}$(node -v)%{$fg[green]%} %{$reset_color%}"
fi
}
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
bgnotify
docker
docker-compose
)
autoload -U compinit && compinit
source $ZSH/oh-my-zsh.sh
## env vars
export NODE_ENV="development"
GREEN="%{$fg_bold[green]%}"
YELLOW="%{$fg_bold[yellow]%}"
CYAN="%{$fg_bold[cyan]%}"
RED="%{$fg_bold[red]%}"
RESET="%{$reset_color%}"
PROMPT=' $YELLOW%c $(git_prompt_info) $RESET in $GREEN ⬢ $(node_prompt_version)'
ZSH_THEME_GIT_PROMPT_PREFIX=" $CYAN"
ZSH_THEME_GIT_PROMPT_SUFFIX=""
ZSH_THEME_GIT_PROMPT_DIRTY=" $RED⦿"
ZSH_THEME_GIT_PROMPT_CLEAN=" $GREEN⦾"
export PATH="/usr/local/opt/tcl-tk/bin:$PATH"
export PATH="/usr/local/opt/libpq/bin:$PATH"
export PATH="/usr/local/opt/mysql-client/bin:$PATH"
# NVM
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
fpath=(~/.zsh/completion $fpath)