-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
35 lines (26 loc) · 1.24 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
# Make tab-completion work without errors (command not found: compdef)
autoload -Uz compinit && compinit
[ -f /usr/local/opt/antidote/share/antidote/antidote.zsh ] && source /usr/local/opt/antidote/share/antidote/antidote.zsh
[ -f /opt/homebrew/opt/antidote/share/antidote/antidote.zsh ] && source /opt/homebrew/opt/antidote/share/antidote/antidote.zsh
antidote load
# Starship
eval "$(starship init zsh)"
# Load the shell dotfiles, and then some:
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don’t want to commit.
for file in ~/.{exports,aliases}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file";
done;
unset file;
# iTerm2 "shell integration", see:
# https://iterm2.com/shell_integration/install_shell_integration_and_utilities.sh
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
function iterm2_print_user_vars() {
iterm2_set_user_var starship "$(starship prompt)"
}
export ZSH_THEME_TERM_TITLE_IDLE="%~"
# 1Password CLI plugins
[ -f ~/.config/op/plugins.sh ] && source ~/.config/op/plugins.sh
# Source local extra (private) settings specific to machine if it exists
[ -f ~/.zsh.local ] && source ~/.zsh.local
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh