-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
147 lines (120 loc) · 4.57 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# zmodload zsh/zprof
setopt AUTO_CD
setopt INTERACTIVE_COMMENTS
setopt HIST_FCNTL_LOCK
setopt HIST_IGNORE_ALL_DUPS
setopt SHARE_HISTORY
unsetopt AUTO_REMOVE_SLASH
unsetopt HIST_EXPIRE_DUPS_FIRST
unsetopt EXTENDED_HISTORY
source ~/.config/scripts/path.sh
source ~/.config/scripts/misc.sh
source ~/.config/scripts/aliases.sh
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/Homebrew/Caskroom/miniforge/base/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/opt/Homebrew/Caskroom/miniforge/base/etc/profile.d/conda.sh" ]; then
. "/opt/Homebrew/Caskroom/miniforge/base/etc/profile.d/conda.sh"
else
export PATH="/opt/Homebrew/Caskroom/miniforge/base/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
# >>> mamba initialize >>>
# !! Contents within this block are managed by 'mamba init' !!
export MAMBA_EXE="/opt/Homebrew/bin/micromamba";
export MAMBA_ROOT_PREFIX="/Users/alias/micromamba";
__mamba_setup="$("$MAMBA_EXE" shell hook --shell zsh --prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__mamba_setup"
else
if [ -f "/Users/alias/micromamba/etc/profile.d/micromamba.sh" ]; then
. "/Users/alias/micromamba/etc/profile.d/micromamba.sh"
else
export PATH="/Users/alias/micromamba/bin:$PATH" # extra space after export prevents interference from conda init
fi
fi
unset __mamba_setup
# <<< mamba initialize <<<
# >>> xmake >>>
test -f "/Users/alias/.xmake/profile" && source "/Users/alias/.xmake/profile"
# <<< xmake <<<
# bun completions
[ -s "/Users/alias/.bun/_bun" ] && source "/Users/alias/.bun/_bun"
#opam
[[ ! -r /Users/alias/.opam/opam-init/init.zsh ]] || source /Users/alias/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
#rbenv
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
#homebrew site-functions
if type brew &>/dev/null
then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
fi
autoload -Uz compinit
for dump in ~/.zcompdump(N.mh+24); do
compinit
done
compinit -C
autoload -Uz compinit && compinit
zmodload zsh/complist
### Added by Zinit's installer
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit"
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \
print -P "%F{33} %F{34}Installation successful.%f%b" || \
print -P "%F{160} The clone has failed.%f%b"
fi
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
# zinit ice wait'!0'
# zinit light-mode depth=1 for \
# spaceship-prompt/spaceship-prompt
# zinit as"null" wait"0a" lucid light-mode from"gh-r" completions for \
# nocompile"!" \
# atclone"./zoxide init zsh --no-cmd > init.zsh" \
# atpull"%atclone" \
# src"init.zsh" \
# ajeetdsouza/zoxide
zinit wait lucid light-mode depth=1 for \
atinit"ZINIT[COMPINIT_OPTS]=-C; zicompinit; zicdreplay" \
zdharma-continuum/fast-syntax-highlighting \
atload"!_zsh_autosuggest_start" \
zsh-users/zsh-autosuggestions \
blockf zsh-users/zsh-completions
# zinit light zsh-users/zsh-autosuggestions
# zinit light zsh-users/zsh-completions
# zinit light zdharma-continuum/fast-syntax-highlighting
zinit light wfxr/forgit
zinit light Aloxaf/fzf-tab
zinit light-mode for \
zdharma-continuum/zinit-annex-binary-symlink \
zdharma-continuum/zinit-annex-linkman \
zdharma-continuum/zinit-annex-patch-dl \
### End of Zinit's installer chunk
# Auto completion
zstyle ":completion:*:*:*:*:*" menu select
zstyle ":completion:*" use-cache yes
zstyle ":completion:*" special-dirs true
zstyle ":completion:*" squeeze-slashes true
zstyle ":completion:*" file-sort change
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ":completion:*" matcher-list "m:{[:lower:][:upper:]}={[:upper:][:lower:]}" "r:|=*" "l:|=* r:|=*"
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'eza -1 --color=always $realpath'
zstyle ':fzf-tab:*' switch-group '<' '>'
zstyle ':completion:*:descriptions' format '[%d]'
# zstyle ':fzf-tab:*' fzf-command ftb-tmux-popup
# Extra scripts to run
# github-copilot-cli
eval "$(github-copilot-cli alias -- "$0")"
eval "$(atuin init zsh)"
eval "$(starship init zsh)"
source <(fzf --zsh)
eval "$(zoxide init zsh)"
# pokemon show
pokemon-colorscripts -r -s --no-title