diff options
| author | Skullheadx <andrew@montgomery.systems> | 2026-07-04 12:49:32 -0400 |
|---|---|---|
| committer | Skullheadx <andrew@montgomery.systems> | 2026-07-04 12:49:32 -0400 |
| commit | 83e9630ce42986d098abd0bc77d42c03b8594508 (patch) | |
| tree | 764470f68677fe86eac4163c746fe4376e7ae492 /zsh-darwin.nix | |
| parent | todo for git forge (diff) | |
| download | nixos-83e9630ce42986d098abd0bc77d42c03b8594508.tar.gz nixos-83e9630ce42986d098abd0bc77d42c03b8594508.tar.bz2 nixos-83e9630ce42986d098abd0bc77d42c03b8594508.zip | |
zsh linux and zsh darwin, also add some tools for linux
Diffstat (limited to 'zsh-darwin.nix')
| -rw-r--r-- | zsh-darwin.nix | 37 |
1 files changed, 37 insertions, 0 deletions
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 + ''; + }; +} |
