From 83e9630ce42986d098abd0bc77d42c03b8594508 Mon Sep 17 00:00:00 2001 From: Skullheadx Date: Sat, 4 Jul 2026 12:49:32 -0400 Subject: zsh linux and zsh darwin, also add some tools for linux --- zsh-darwin.nix | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 zsh-darwin.nix (limited to 'zsh-darwin.nix') diff --git a/zsh-darwin.nix b/zsh-darwin.nix new file mode 100644 index 0000000..74e164f --- /dev/null +++ b/zsh-darwin.nix @@ -0,0 +1,37 @@ +{ + config, + pkgs, + ... +}: { + environment.systemPackages = with pkgs; [ + direnv + fzf + zoxide + ]; + + programs.zsh = { + enable = true; + enableAutosuggestions = true; + enableBashCompletion = true; + enableCompletion = true; + enableGlobalCompInit = true; + enableFastSyntaxHighlighting = true; + enableFzfCompletion = true; + enableFzfGit = true; + enableFzfHistory = true; + histFile = "$HOME/.zsh_history"; + histSize = 100000; + promptInit = '' + PROMPT=$'%{\e[97m%}[%{\e[m%}%{\e[92m%}%n%{\e[m%}%{\e[32m%}@%{\e[m%}%{\e[92m%}%m%{\e[m%}:%{\e[92m%}%~%{\e[m%}%{\e[97m%}]%{\e[m%}%{\e[97m%}%#%{\e[m%} ' + ''; + interactiveShellInit = '' + eval "$(direnv hook zsh)" + eval "$(zoxide init zsh)" + + setopt autocd extendedglob nomatch notify + + bindkey -v + export KEYTIMEOUT=20 + ''; + }; +} -- cgit v1.3.1