-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
44 lines (33 loc) · 970 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
# register brew path
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
# init starship
eval $(starship init zsh)
# init keychain
eval $(keychain --eval --quiet --agents ssh id_rsa)
# init znap
source ~/.znap/zsh-snap/znap.zsh
znap source zsh-users/zsh-autosuggestions
ZSH_HIGHLIGHT_HIGHLIGHTERS=( main brackets )
znap source zsh-users/zsh-syntax-highlighting
znap source ohmyzsh/ohmyzsh 'lib/history.zsh' plugins/history
# aliases
alias ls="ls --color=auto"
# homebrew completions
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
fi
# az completions
source /etc/bash_completion.d/azure-cli
# flux completions
command -v flux >/dev/null && . <(flux completion zsh)
# dotnet completions
_dotnet_zsh_complete()
{
local completions=("$(dotnet complete "$words")")
reply=( "${(ps:\n:)completions}" )
}
compctl -K _dotnet_zsh_complete dotnet
# fzf init
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# tty
export GPG_TTY=$(tty)