From f58b4794020db8d24a864d40f49cc0fd88acace4 Mon Sep 17 00:00:00 2001 From: schererleander Date: Sat, 15 Nov 2025 22:24:16 +0100 Subject: add zsh --- zsh/.zshrc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 zsh/.zshrc diff --git a/zsh/.zshrc b/zsh/.zshrc new file mode 100644 index 0000000..8b64bf8 --- /dev/null +++ b/zsh/.zshrc @@ -0,0 +1,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" \ No newline at end of file -- cgit v1.3.1