aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschererleander <leander@schererleander.de>2025-11-15 22:24:16 +0100
committerschererleander <leander@schererleander.de>2025-11-15 22:24:16 +0100
commitf58b4794020db8d24a864d40f49cc0fd88acace4 (patch)
treeecb01466d9f9ae8b9074ed57a7658bb11156e9f3
parent73c6120868ca6e34a8a20fe388481276a6fdd89e (diff)
add zsh
-rw-r--r--zsh/.zshrc30
1 files changed, 30 insertions, 0 deletions
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