-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshrc
110 lines (93 loc) · 2.9 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
99
100
101
102
103
104
105
106
107
108
109
110
# ------------------------------
# Read Compiled zshrc
# ------------------------------
if [ ! -f ~/.zshrc.zwc -o ~/.zshrc -nt ~/.zshrc.zwc ]; then
zcompile ~/.zshrc
fi
# ------------------------------
# sheldon
# ------------------------------
eval "$(sheldon source)"
# ------------------------------
# ztyle
# ------------------------------
# prezto
zstyle ':prezto:module:editor' key-bindings 'emacs'
zstyle ':prezto:module:editor' dot-expansion 'yes'
zstyle ':prezto:module:terminal' auto-title 'yes'
zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s'
zstyle ':prezto:module:terminal:tab-title' format '%m: %s'
zstyle ':prezto:module:terminal:multiplexer-title' format '%s'
# color
eval $(dircolors ${XDG_DATA_HOME}/sheldon/repos/github.com/seebi/dircolors-solarized/dircolors.ansi-dark)
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
# completion
zstyle ':completion:*' verbose yes
zstyle ':completion:*' completer _expand _complete _match _prefix _approximate _list _history
zstyle ':completion:*:default' menu select=2
zstyle ':completion:*:options' description 'yes'
zstyle ':completion:*' use-cache yes
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
# ------------------------------
# General Settings
# ------------------------------
# umask
umask 022
# prompt
setopt transient_rprompt
# disable Beep
setopt no_beep
setopt no_list_beep
setopt no_hist_beep
# completion
setopt auto_list
setopt auto_menu
setopt auto_param_keys
setopt auto_param_slash
setopt list_types
setopt list_packed
setopt mark_dirs
setopt complete_in_word
setopt always_last_prompt
setopt print_eight_bit
# history
setopt hist_ignore_dups
setopt hist_no_store
setopt hist_ignore_space
setopt share_history
setopt extended_history
setopt inc_append_history
export LESS='-R'
export LESSOPEN="|/usr/local/bin/src-hilite-lesspipe.sh %s"
# ------------------------------
# pip Settings
# ------------------------------
eval "$(pip3 completion --zsh)"
# ------------------------------
# GCP Settings
# ------------------------------
source /opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc
source /opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc
export USE_GKE_GCLOUD_AUTH_PLUGIN=True
# ------------------------------
# Dart Settings
# ------------------------------
[[ -f ${HOME}/.config/.dart-cli-completion/zsh-config.zsh ]] && . ${HOME}/.config/.dart-cli-completion/zsh-config.zsh || true
# ------------------------------
# Key bindings
# ------------------------------
bindkey '^r' fzf-history
# ------------------------------
# Load aliases
# ------------------------------
source ${HOME}/.aliases
# ------------------------------
# Starship Theme
# ------------------------------
eval "$(starship init zsh)"
# ------------------------------
# Custom local files
# ------------------------------
if [[ -f ${HOME}/.zshrc.local ]]; then
source ${HOME}/.zshrc.local
fi