-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
84 lines (61 loc) · 2.28 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
73
74
75
76
77
78
79
80
81
82
83
84
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
[[ -f ~/.zplug/init.zsh ]] ||
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
. "$HOME/.zplug/init.zsh"
export PATH="/usr/local/bin:$PATH"
export PATH="$HOME/.cargo/bin:$PATH"
source "$HOME/.cargo/env"
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools
eval $(/opt/homebrew/bin/brew shellenv)
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias ls='exa'
alias useful="open ~/useful"
alias sketchreset="brew services stop sketchybar && brew services start sketchybar"
alias python="python3"
function take() {
mkdir -p "$1" && cd "$1"
}
setopt no_list_ambiguous
zplug "wintermi/zsh-rust"
zplug "zsh-users/zsh-syntax-highlighting"
zplug "zimfw/asdf"
zplug "kiurchv/asdf.plugin.zsh", defer:2
zplug "none9632/zsh-sudo"
zplug "marlonrichert/zsh-autocomplete"
zstyle ':autocomplete:*complete*:*' insert-unambiguous yes
zstyle ':autocomplete:*history*:*' insert-unambiguous yes
zstyle ':autocomplete:menu-search:*' insert-unambiguous yes
bindkey '\t' menu-select "$terminfo[kcbt]" menu-select
zplug "agkozak/zsh-z"
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
zplug load
[[ -f ~/.config/tabtab/zsh/__tabtab.zsh ]] && . ~/.config/tabtab/zsh/__tabtab.zsh || true
eval "$HOME/.config/zsh/inspirustbot" | cowsay -f ~/.config/zsh/minou.cow
eval "$(starship init zsh)"
# pnpm
export PNPM_HOME="$HOME/Library/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
# opam configuration
[[ ! -r /Users/mariejosee/.opam/opam-init/init.zsh ]] || source /Users/mariejosee/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
# bun completions
[ -s "/Users/virginierb/.bun/_bun" ] && source "/Users/virginierb/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"