-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshrc
33 lines (27 loc) · 895 Bytes
/
dot_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
source /opt/homebrew/opt/antidote/share/antidote/antidote.zsh
antidote load
autoload -Uz promptinit
promptinit
prompt pure
alias ls='eza'
alias la='eza --header --long --all'
alias tree='eza --tree --level=3 --git-ignore'
alias cat='bat --plain --paging=never --tabs=4 --theme=Visual\ Studio\ Dark+'
alias greset='git reset --hard @{u}'
alias gpf='git push -f'
alias cls='printf "\033c"'
alias dl='yt-dlp'
alias nx="nlx"
fbr() {
local branches branch
branches=$(git branch --all | grep -v HEAD) &&
branch=$(echo "$branches" |
fzf-tmux -d $(( 2 + $(wc -l <<< "$branches") )) +m) &&
git checkout $(echo "$branch" | sed "s/.* //" | sed "s#remotes/[^/]*/##")
}
# bun completions
[ -s "/Users/valtism/.bun/_bun" ] && source "/Users/valtism/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
eval "$(~/.local/bin/mise activate zsh)"