-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshrc
37 lines (28 loc) · 992 Bytes
/
dot_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
[ ! -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/profile.sh" ] || source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/profile.sh"
# Configure Homebrew completions
if type brew &>/dev/null
then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
PATH="$(brew --prefix)/opt/coreutils/libexec/gnubin:$PATH"
autoload -Uz compinit
compinit
fi
# Configure mise
eval "$(mise activate zsh --shims)"
# Configure pipx completions
eval "$(register-python-argcomplete pipx)"
# Configure zoxide
eval "$(zoxide init zsh --cmd cd)"
# Configure fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='code'
fi
export VISUAL='code'
export CARAPACE_BRIDGES='zsh,fish,bash,argcomplete' # optional
zstyle ':completion:*' format $'\e[2;37mCompleting %d\e[m'
zstyle ':completion:*:git:*' group-order 'main commands' 'alias commands' 'external commands'
source <(carapace _carapace)