Working on termonal stuff
This commit is contained in:
@@ -5,12 +5,17 @@
|
|||||||
user,
|
user,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
zshConfigDir = "${config.xdg.configHome}/zsh"; # Define outside programs.zsh
|
||||||
|
in
|
||||||
{
|
{
|
||||||
home-manager.users.${user.username} = {
|
home-manager.users.${user.username} = {
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
dotDir = "${config.xdg.configHome}/zsh"; # Now correct: inside Home Manager scope
|
dotDir = zshConfigDir; # Use the variable here
|
||||||
|
autosuggestion.enable = true;
|
||||||
|
syntaxHighlighting.enable = true;
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "";
|
theme = "";
|
||||||
@@ -18,16 +23,20 @@
|
|||||||
"git"
|
"git"
|
||||||
"sudo"
|
"sudo"
|
||||||
"extract"
|
"extract"
|
||||||
"colored-man-pages"
|
"colored-man-lpages"
|
||||||
"command-not-found"
|
"command-not-found"
|
||||||
"history"
|
"history"
|
||||||
"docker"
|
"docker"
|
||||||
"kubectl"
|
"kubectl"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
autosuggestion.enable = true;
|
|
||||||
syntaxHighlighting.enable = true;
|
|
||||||
#zshoptions = [ "AUTO_CD" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Set Zsh options (e.g., AUTO_CD) in .zshrc
|
||||||
|
xdg.configFile."zsh/.zshrc".text = lib.concatStringsSep "\n" [
|
||||||
|
"setopt AUTO_CD"
|
||||||
|
"setopt CORRECT"
|
||||||
|
"setopt INTERACTIVE_COMMENTS"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user