aboutsummaryrefslogtreecommitdiff
path: root/zsh/.zshrc
blob: 8b64bf8d787df974ef4443024200c1a7227f8dc3 (plain)
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
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh

export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg-8"
export ZSH_AUTOSUGGEST_STRATEGY=("history")

source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

# view man pages with nvim
export MANPAGER="nvim +Man!"

# Directory completion with trailing slash
zstyle ':completion:*' list-dirs-first true
zstyle ':completion:*' special-dirs true
zstyle ':completion:*' squeeze-slashes true
zstyle ':completion:*' add-space false

# Case-insensitive completion
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'

# pure theme
autoload -U promptinit; promptinit
prompt pure

# vim keybindings
bindkey -v

alias ls="ls --color=auto"

eval "$(zoxide init zsh)"
export PATH="/opt/homebrew/opt/openjdk@21/bin:$PATH"