-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
72 lines (54 loc) · 1.9 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
#!/bin/bash
# if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
# source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
# fi
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-$USER.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-$USER.zsh"
fi
# Enabling the Zsh Completion System
autoload bashcompinit && bashcompinit
autoload -Uz compinit && compinit
eval "$(/opt/homebrew/bin/brew shellenv)"
eval "$(/usr/local/bin/brew shellenv)"
#A smarter cd command.
eval "$(zoxide init zsh)"
# Zap Plugin Manager
[ -f "$HOME/.local/share/zap/zap.zsh" ] && source "$HOME/.local/share/zap/zap.zsh"
## TODO: fix this
## asdf
export ASDF_DIR="/opt/homebrew/Cellar/asdf/0.13.1/libexec/"
plug "/opt/homebrew/Cellar/asdf/0.13.1/libexec/asdf.sh"
eval "$(github-copilot-cli alias -- "$0")"
plug "$HOME/.config/zsh/aliases.zsh"
plug "$HOME/.config/zsh/options.zsh"
plug "$HOME/.config/zsh/keybindings.zsh"
plug "romkatv/powerlevel10k"
plug "zsh-users/zsh-autosuggestions"
plug "zsh-users/zsh-syntax-highlighting"
plug "zsh-users/zsh-completions"
plug "Aloxaf/fzf-tab"
plug "softmoth/zsh-vim-mode"
plug "zap-zsh/supercharge"
plug "zap-zsh/exa"
plug "Freed-Wu/fzf-tab-source"
plug "zsh-users/zsh-history-substring-search"
# pnpm
export PNPM_HOME="/Users/$USER/Library/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# add PATH for local binaries
export PATH=$PATH:$HOME/.local/bin
# FZF
[ -f ~/.fzf.zsh ] && source "$HOME/.fzf.zsh"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source "$HOME/.p10k.zsh"
source <(kubectl completion zsh)
# aws cli completion
complete -C '/usr/local/bin/aws_completer' aws
# dotnet tools
export PATH="$PATH:~/.dotnet/tools"
export DOTNET_CLI_TELEMETRY_OPTOUT=1
#NOTE:
# https://thevaluable.dev/zsh-completion-guide-examples/