-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
32 lines (26 loc) · 885 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
# Source configs
source ~/alias
# Export
export EDITOR=vim
export GIT_EDITOR=vim
export HISTFILESIZE=20000
export HISTSIZE=10000
export HISTFILE=~/.zsh_history
export HISTCONTROL=ignoredups:erasedups
# Configure zsh prompt git integration
autoload -Uz vcs_info
precmd_vcs_info() { vcs_info }
precmd_functions+=( precmd_vcs_info )
setopt prompt_subst
zstyle ':vcs_info:git:*' formats '%b'
# Define prompt format
export PROMPT='[%F{cyan}%n %F{magenta}%~%f ${vcs_info_msg_0_}]: '
# Setting minimum Mac OS Version for clang builds
export MACOSX_DEPLOYMENT_TARGET=10.14
# Reverse search settings
bindkey -v
bindkey '^R' history-incremental-search-backward
# Node Version Manager settings
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