-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
49 lines (39 loc) · 923 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Configure brew
export HOMEBREW_NO_ANALYTICS=1
eval "$(/opt/homebrew/bin/brew shellenv)"
# Configure brew completions
if type brew &>/dev/null
then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
autoload -Uz compinit
compinit
fi
# Configure editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='nvim'
fi
# Configure aliases
if [ -f $HOME/.aliases ]; then
source $HOME/.aliases
fi
# Begin manual installations
# Configure fzf
if type fzf &> /dev/null; then
source <(fzf --zsh)
fi
# Configure zoxide
if type zoxide &> /dev/null; then
eval "$(zoxide init zsh)"
fi
# Configure mise
if type mise &> /dev/null; then
eval "$(mise activate zsh)"
fi
# Configure starship
if type starship &> /dev/null; then
export STARSHIP_CONFIG=~/.config/starship/starship.toml
eval "$(starship init zsh)"
fi
# End manual installations