51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
let
|
|
c = config.theme.colors;
|
|
in
|
|
{
|
|
# Tells HM to set ZDOTDIR, which moves all zsh config into ~/.config/zsh
|
|
programs.zsh = {
|
|
enable = true;
|
|
dotDir = "${config.xdg.configHome}/zsh";
|
|
|
|
|
|
enableCompletion = true;
|
|
autosuggestion.enable = true;
|
|
syntaxHighlighting.enable = true;
|
|
|
|
history = {
|
|
size = 50000;
|
|
save = 50000;
|
|
ignoreDups = true;
|
|
share = true;
|
|
};
|
|
|
|
# initContent = ''
|
|
# PROMPT="%F{${c.green_b}}%n@%m%f %F{${c.yellow_b}}%~%f %F{${c.fg4}}»%f "
|
|
# '';
|
|
|
|
shellAliases = {
|
|
ls = "eza --icons";
|
|
ll = "eza -la --icons";
|
|
cat = "bat";
|
|
grep = "rg";
|
|
};
|
|
};
|
|
|
|
# PATH additions — HM prepends these to PATH in the correct order
|
|
home.sessionPath = [
|
|
"$HOME/.config/emacs/bin"
|
|
];
|
|
|
|
# Environment variables
|
|
home.sessionVariables = {
|
|
EDITOR = "emacsclient -c";
|
|
VISUAL = "emacsclient -c";
|
|
SUDO_EDITOR = "emacsclient -c";
|
|
PAGER = "bat --color auto";
|
|
MANPAGER = "bat -plman";
|
|
_JAVA_AWT_WM_NONREPARENTING = "1";
|
|
};
|
|
}
|