ZSH: revert back to oh-my-zsh
This commit is contained in:
parent
3f8c3d8326
commit
2ccda9b918
|
@ -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";
|
||||||
|
|
|
@ -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"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue