-
Notifications
You must be signed in to change notification settings - Fork 2
/
.zshrc
98 lines (67 loc) · 1.88 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Sourced in interactive shells only.
# It should contain commands to set up aliases, functions, options, key
# bindings, etc.
bindkey -v
export EDITOR=vim
# Fix the "do you wish to see all #### possibilities" issue when searching.
bindkey '\e/' history-incremental-pattern-search-backward
# Git Completion
# zstyle ':completion:*:*:git:*' script /usr/local/opt/git/share/zsh/site-functions/git-completion.bash
# fpath=(/usr/local/opt/git/share/zsh/site-functions $fpath)
# autoload -Uz compinit && compinit
if type brew &>/dev/null
then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
autoload -Uz compinit
compinit
fi
# History Options
# ###############
setopt HIST_FIND_NO_DUPS
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_ALL_DUPS
export HISTFILESIZE=1000000
export HISTSIZE=2000
export SAVEHIST=100000
setopt INC_APPEND_HISTORY
export HISTTIMEFORMAT="[%F %T] "
setopt EXTENDED_HISTORY
setopt SHARE_HISTORY
setopt HIST_REDUCE_BLANKS
# Aliases
# #######
if [ -f ~/.osx_aliases ]; then
. ~/.osx_aliases
fi
if [ -f ~/.work_aliases ]; then
. ~/.work_aliases
fi
# Functions
# #########
if [ -f ~/bin/shell-library.sh ]; then
. ~/bin/shell-library.sh
fi
if [ -f ~/bin/work-library.sh ]; then
. ~/bin/work-library.sh
fi
# Work Customizations
# ###################
if [ -f ~/.workrc ]; then
. ~/.workrc
fi
# Prompt
# ######
# Load version control information
# autoload -Uz vcs_info
# precmd() { vcs_info }
# precmd_functions+=( precmd_vcs_info )
# setopt prompt_subst
# RPROMPT=\$vcs_info_msg_0_
# zstyle ':vcs_info:git:*' formats '%F{magenta}(%b)%f'
# zstyle ':vcs_info:*' enable git
PROMPT='%* %F{cyan}%5~%f %(?.%#.%F{red}%? %#)%f '
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
[ -f ~/bin/daily-lyric.sh ] && . ~/bin/daily-lyric.sh
export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"
export PATH="/opt/homebrew/opt/libpq/bin:$PATH"
export PATH="/opt/homebrew/opt/libpq/bin:$PATH"