-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
76 lines (59 loc) · 1.94 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
export ZSH="$HOME/.oh-my-zsh" # Path to your oh-my-zsh installation.
export ERL_AFLAGS="-kernel shell_history enabled"
# ZSH_THEME="spaceship"
ZSH_THEME="ultima"
plugins=(git kubectl asdf)
source $ZSH/oh-my-zsh.sh
source <(kubectl completion zsh)
fpath=(${ASDF_DIR}/completions $fpath)
[ -f ~/.asdf/asdf.sh ] && . $HOME/.asdf/asdf.sh
### Added by Zinit's installer
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
source "${ZINIT_HOME}/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
### End of Zinit installer's chunk
zinit light-mode for \
zdharma-continuum/zinit-annex-as-monitor \
zdharma-continuum/zinit-annex-bin-gem-node \
zdharma-continuum/zinit-annex-patch-dl \
zdharma-continuum/zinit-annex-rust \
zdharma-continuum/fast-syntax-highlighting \
zsh-users/zsh-autosuggestions \
zsh-users/zsh-completions
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[ ! -f ~/.p10k.zsh ] || source ~/.p10k.zsh
if [ ! -f ~/.gitconfig ]; then
git config --global core.editor "vi"
git config --global user.email "[email protected]"
git config --global user.name "Vinicius Sales"
# Git aliases
git config --global alias.unstage "reset HEAD --"
# 'git yolo' for something magic
git config --global --add alias.yolo '!git commit -m "$(curl -s https://whatthecommit.com/index.txt)"'
fi
is_installed() {
if which "$1" >/dev/null 2>&1; then
return 0 # true
else
return 1 # false
fi
}
if is_installed "batcat"; then
alias cat="batcat --paging=never"
fi
#nvim
export PATH="$PATH:/opt/nvim-linux64/bin"
# pnpm
export PNPM_HOME="/home/vinicius/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
# bun completions
[ -s "/home/vinicius/.bun/_bun" ] && source "/home/vinicius/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
eval "$(~/.local/bin/mise activate zsh)"