-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc-minimal
65 lines (42 loc) · 1.34 KB
/
.zshrc-minimal
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
NVM_NODE_PATH="/home/user/.nvm/versions/node/v18.20.4/bin"
export PATH=$HOME/.cargo/bin:$HOME/.local/bin:/usr/local/go/bin:$HOME/go/bin:$NVM_NODE_PATH:$PATH
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="eastwood"
plugins=(
git
zsh-completions
zsh-interactive-cd
zsh-navigation-tools
zsh-autosuggestions
zsh-syntax-highlighting
)
source $ZSH/oh-my-zsh.sh
# User configuration
export EDITOR=nvim
alias j='just'
alias ls="ls -a --color=auto"
alias lg='lazygit'
alias t='tree'
# SSH
alias devb='ssh devboard'
alias logs='sudo journalctl -fea | lnav'
# Poetry aliases
alias psh='poetry shell'
alias pli='poetry lock && poetry install'
# Systemd
alias svd='sudo systemctl stop'
alias svu='sudo systemctl start'
alias svs='sudo systemctl status'
alias svr='sudo systemctl restart'
alias svrd='sudo systemctl daemon-reload'
# git alias
alias cdg='cd $(git rev-parse --show-toplevel)'
# Gcpro aliases
alias set_gcpro_perms='sudo chown $USER -R /run/gcpro /var/lib/gcpro /etc/gcpro /run/task-scheduler'
eval "$(zoxide init zsh)"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"