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;
};
# Tweak Zsh
# Set up Zsh
zsh = {
oh-my-zsh = {
theme = "gentoo";
};
shellAliases = {
nos = "nixos-operations-script";
z = "zellij";

View file

@ -1,27 +1,40 @@
# Additional ZSH settings via Home Manager
{ ... }:
{ pkgs, ... }:
{
programs = {
# Set up Starship
# https://starship.rs/
starship = {
enable = true;
enableZshIntegration = true;
};
command-not-found.enable = true;
zsh = {
enable = true;
autosuggestion.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.
initExtra = ''
function set_win_title(){
echo -ne "\033]0; $(basename "$PWD") \007"
prezto = {
git.submoduleIgnore = "untracked"; # Ignore submodules when they are untracked.
};
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)
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
'';
];
oh-my-zsh = {
enable = true;
plugins = [
"command-not-found"
"direnv"
"dotenv"
"extract"
"git"
"systemd"
];
};
};
};
}

View file

@ -90,6 +90,13 @@ in
enable = true;
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 = {
imports = [ ../common/home-manager/zsh.nix ];
home.stateVersion = "24.05";
programs.zsh = {
oh-my-zsh.theme = "kardan";