-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
62 lines (48 loc) · 1.36 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
# .zshrc
#
ZPLUGINDIR="$HOME/.config/zsh/plugins"
source ~/.plugins.zsh
plugins=(
sindresorhus/pure
zsh-users/zsh-syntax-highlighting
zsh-users/zsh-autosuggestions
)
plugin-load $plugins
# Variables
export EDITOR=nvim
export HOMEBREW_BUNDLE_FILE="$HOME/.brewfile"
# Aliases
alias ddu="du -d 1 -h | sort -h"
alias docker=podman
alias lg="lazygit"
alias refresh=". ~/.zshrc"
## Git helpers - cause I'm a super lazy typist
alias gco="git co"
alias gsb="git sb"
alias gst="git st"
## tmux/tmuxinator
alias ta="tmux attach -t"
alias ts="tmux new-session -s"
alias tl="tmux list-sessions"
alias tksv="tmux kill-server"
alias tkss="tmux kill-session -t"
alias txs="tmuxinator start"
alias txl="tmuxinator list"
# neovim
which nvim &>/dev/null && alias vim=nvim && alias vi=nvim
# atuin
eval "$(atuin init zsh)"
# rust
. "$HOME/.cargo/env"
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
# nvm
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
# fzf
source <(fzf --zsh)
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /opt/homebrew/bin/terramate terramate