Files
home-manager/programs/zsh.nix
2026-02-05 14:45:41 +01:00

31 lines
676 B
Nix

{ pkgs, ... }:
{
home.file.".zsh/fastfetch.jsonc".source =
./fastfetch/config.jsonc;
programs.zsh = {
enable = true;
oh-my-zsh = {
enable = true;
theme = "agnoster";
};
initContent = ''
alias git-prune="git fetch -p && git branch -vv | grep ': gone]' | grep -v '*' | awk '{print \$1}' | xargs -r git branch -D"
# Use kitty's ssh helper if running inside kitty
[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh"
[[ $- != *i* ]] && return
# Run fastfetch
if command -v fastfetch >/dev/null 2>&1; then
fastfetch --logo none --config ~/.zsh/fastfetch.jsonc
fi
'';
};
}