diff options
| author | Leander Scherer <leander@schererleander.de> | 2026-01-13 00:31:15 +0100 |
|---|---|---|
| committer | Leander Scherer <leander@schererleander.de> | 2026-01-13 00:31:15 +0100 |
| commit | e17f06eaca8c49ff85e953f6388fc05b9ac8b149 (patch) | |
| tree | 651a101d8eb7201dd532e2b34c8c9a4e7d319663 /modules/home/shells | |
| parent | 355573fbc0eaeb39dbb19288abdbf7c7e2bd5aa3 (diff) | |
feat(zsh): setup auto cd, cd complete
Diffstat (limited to 'modules/home/shells')
| -rw-r--r-- | modules/home/shells/zsh/default.nix | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/modules/home/shells/zsh/default.nix b/modules/home/shells/zsh/default.nix index 72d3f9a..5da67c9 100644 --- a/modules/home/shells/zsh/default.nix +++ b/modules/home/shells/zsh/default.nix @@ -25,23 +25,29 @@ in autosuggestion.enable = true; syntaxHighlighting.enable = true; initContent = '' - # view man pages with nvim - export MANPAGER="nvim +Man!" + # 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 + # 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}' - # vim keybindings - bindkey -v + # Case-insensitive completion + zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' + # vim keybindings + bindkey -v - # zoxide smarter cmd command - eval "$(zoxide init zsh)" - ''; + # Auto cd - type directory name to cd into it + setopt AUTO_CD + + # Complete .. to ../ for directory navigation + setopt AUTO_PARAM_SLASH + + # zoxide smarter cmd command + eval "$(zoxide init zsh)" + ''; shellAliases = { ls = "ls --color=auto"; }; |
