1
0
Fork 0

ZSH: revert back to oh-my-zsh

This commit is contained in:
Aires 2024-11-08 09:38:25 -05:00
parent 3f8c3d8326
commit 2ccda9b918
4 changed files with 41 additions and 16 deletions

View file

@ -91,8 +91,11 @@ in
matchBlocks = config.secrets.users.aires.sshConfig; matchBlocks = config.secrets.users.aires.sshConfig;
}; };
# Tweak Zsh # Set up Zsh
zsh = { zsh = {
oh-my-zsh = {
theme = "gentoo";
};
shellAliases = { shellAliases = {
nos = "nixos-operations-script"; nos = "nixos-operations-script";
z = "zellij"; z = "zellij";

View file

@ -1,27 +1,40 @@
# Additional ZSH settings via Home Manager # Additional ZSH settings via Home Manager
{ ... }: { pkgs, ... }:
{ {
programs = { programs = {
# Set up Starship command-not-found.enable = true;
# https://starship.rs/
starship = {
enable = true;
enableZshIntegration = true;
};
zsh = { zsh = {
enable = true; enable = true;
autosuggestion.enable = true; autosuggestion.enable = true;
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
history.ignoreDups = true; # Do not enter command lines into the history list if they are duplicates of the previous event. history.ignoreDups = true; # Do not enter command lines into the history list if they are duplicates of the previous event.
initExtra = '' prezto = {
function set_win_title(){ git.submoduleIgnore = "untracked"; # Ignore submodules when they are untracked.
echo -ne "\033]0; $(basename "$PWD") \007" };
plugins = [
{
name = "zsh-nix-shell";
file = "nix-shell.plugin.zsh";
src = pkgs.fetchFromGitHub {
owner = "chisui";
repo = "zsh-nix-shell";
rev = "v0.8.0";
sha256 = "1lzrn0n4fxfcgg65v0qhnj7wnybybqzs4adz7xsrkgmcsr0ii8b7";
};
} }
precmd_functions+=(set_win_title) ];
oh-my-zsh = {
bindkey "^[[1;5C" forward-word enable = true;
bindkey "^[[1;5D" backward-word plugins = [
''; "command-not-found"
"direnv"
"dotenv"
"extract"
"git"
"systemd"
];
};
}; };
}; };
} }

View file

@ -90,6 +90,13 @@ in
enable = true; enable = true;
matchBlocks = config.secrets.users.gremlin.sshConfig; matchBlocks = config.secrets.users.gremlin.sshConfig;
}; };
# Set up Zsh
zsh = {
oh-my-zsh = {
theme = "gnzh";
};
};
}; };
}; };
}) })

View file

@ -1,6 +1,8 @@
{ ... }: { ... }:
{ {
home-manager.users.root = { home-manager.users.root = {
imports = [ ../common/home-manager/zsh.nix ];
home.stateVersion = "24.05"; home.stateVersion = "24.05";
programs.zsh = { programs.zsh = {
oh-my-zsh.theme = "kardan"; oh-my-zsh.theme = "kardan";