From bdfb8ad3cffd85da606be2ab6ced0ac1c52bdee0 Mon Sep 17 00:00:00 2001 From: winston Date: Wed, 15 Feb 2023 06:40:45 +0100 Subject: [PATCH] fix(bat): auto-theme on darwin --- modules/zsh.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/zsh.nix b/modules/zsh.nix index d85f793..95f7e3d 100644 --- a/modules/zsh.nix +++ b/modules/zsh.nix @@ -86,11 +86,11 @@ in { } ]; shellAliases = { - # switch between yubikeys for the same GPG key cat = if isDarwin - then "bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo default || echo GitHub)" + then "bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo Catppuccin-mocha || echo Catppuccin-latte)" else "bat"; + # switch between yubikeys for the same GPG key switch_yubikeys = "gpg-connect-agent \"scd serialno\" \"learn --force\" /bye"; }; history = {