modify zsh.nix
This commit is contained in:
+19
-4
@@ -4,8 +4,10 @@ let
|
|||||||
c = config.theme.colors;
|
c = config.theme.colors;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
# Tells HM to set ZDOTDIR, which moves all zsh config into ~/.config/zsh
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
dotDir = ".config/zsh"; # sets ZDOTDIR automatically
|
||||||
|
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
@@ -18,16 +20,29 @@ in
|
|||||||
share = true;
|
share = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# new
|
|
||||||
initContent = ''
|
initContent = ''
|
||||||
PROMPT="%F{${c.green_b}}%n@%m%f %F{${c.yellow_b}}%~%f %F{${c.fg4}}»%f "
|
PROMPT="%F{${c.green_b}}%n@%m%f %F{${c.yellow_b}}%~%f %F{${c.fg4}}»%f "
|
||||||
'';
|
'';
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
ls = "eza --icons";
|
ls = "eza --icons";
|
||||||
ll = "eza -la --icons";
|
ll = "eza -la --icons";
|
||||||
cat = "bat";
|
cat = "bat";
|
||||||
grep = "rg";
|
grep = "rg";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# PATH additions — HM prepends these to PATH in the correct order
|
||||||
|
home.sessionPath = [
|
||||||
|
];
|
||||||
|
|
||||||
|
# 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";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user