-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
75 lines (65 loc) · 1.68 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
# ----------------------
# oh-my-posh config
# ----------------------
# Enable ohmyposh instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
# eval "$(oh-my-posh init zsh --config ~/.config/ohmyposh/base.json)"
# if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then
# eval "$(oh-my-posh init zsh --config ~/.config/ohmyposh/base.json)"
# fi
# ----------------------
# oh-my-zsh config
# ----------------------
zstyle ':omz:update' mode auto
ENABLE_CORRECTION="true"
plugins=(
starship
brew
fzf
git
jenv
mvn
nvm
pyenv
thefuck
tmux
zoxide
zsh-autosuggestions
zsh-syntax-highlighting
)
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
source $ZSH/oh-my-zsh.sh
# ----------------------
# Sketchybar interactivity overloads
# ----------------------
function brew() {
command brew "$@"
if [[ $* =~ "upgrade" ]] || [[ $* =~ "update" ]] || [[ $* =~ "outdated" ]]; then
sketchybar --trigger brew_update
fi
}
# ----------------------
# Pyenv Config
# ----------------------
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
# -----------------------------
# Bat (better cat)
# -----------------------------
export BAT_THEME=Nord
alias fzf="fzf --preview 'bat --color=always --line-range=:500 {}'"
# ----------------------
# eza (better ls)
# ----------------------
alias ls='eza -la --all --icons=always'
# ----------------------
# z (better cd)
# ----------------------
alias cd='z'
# Start fast fetch
fastfetch