-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
53 lines (46 loc) · 1.08 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
# oh-my-zsh
export ZSH="$HOME/.oh-my-zsh"
zstyle ':omz:update' mode auto
plugins=(
autoupdate
zsh-autosuggestions
zsh-syntax-highlighting
tmux
git
z
direnv
docker
docker-compose
kubectl
aws
poetry
)
ZSH_AUTOSUGGEST_STRATEGY=(match_prev_cmd)
ZSH_TMUX_UNICODE=true
if ! [[ "$UID" == 0 || "$TERM_PROGRAM" == "vscode" ]]; then
ZSH_TMUX_AUTOSTART=true
ZSH_TMUX_AUTOQUIT=false
fi
source $ZSH/oh-my-zsh.sh
# Path
export PATH="$PATH:$HOME/bin:$HOME/.local/bin:$HOME/go/bin"
# Aliases
alias l="ls -lFhAv --group-directories-first --color"
# Default editor
export EDITOR="/usr/bin/vim"
# Do not save space-prefixed commands to history
setopt HIST_IGNORE_SPACE
# fzf
if command -v fzf &> /dev/null; then
source <(fzf --zsh)
fi
# pyenv
if [ -d $HOME/.pyenv ]; then
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi
# Starship (keep at the very bottom of .zshrc)
export VIRTUAL_ENV_DISABLE_PROMPT=1
eval "$(starship init zsh)"