home-profile: zsh add sudo plugin

This commit is contained in:
Mateusz Słodkowicz 2024-03-31 00:28:17 +01:00
parent cb65f9b455
commit e442af49ba
Signed by: materus
SSH Key Fingerprint: SHA256:rzVduzTiiszuYfLPYD0SDZV+g8lxhpcRgpbOZA1X0Uo
1 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,7 @@ let
rev = "v1.20.0";
sha256 = "sha256-ES5vJXHjAKw/VHjWs8Au/3R+/aotSbY7PWnWAMzCR8E=";
});
sudo = makePlugin "sudo" "sudo.plugin.zsh" "${pkgs.oh-my-zsh}/share/oh-my-zsh/plugins/sudo";
};
in
@ -89,6 +90,9 @@ in
if [[ -f "${extraPlugins.powerlevel10k.fullPath}" ]]; then
source "${extraPlugins.powerlevel10k.fullPath}"
fi
if [[ -f "${extraPlugins.sudo.fullPath}" ]]; then
source "${extraPlugins.sudo.fullPath}"
fi
''
}'';
@ -133,6 +137,10 @@ in
__MATERUS_HM_ZSH_PRIVATE=1 ${lib.getExe config.programs.zsh.package}
}
myip() {
wget -qO- https://wtfismyip.com/text
}
'' +
makeIfVar "__MATERUS_HM_ZSH_PROMPT" "p10k" ''