From 27a8517fdd33130e2197377944cfdec0819a8772 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Sun, 29 Sep 2024 21:39:00 -0700 Subject: [PATCH] Update .config/fish/conf.d/30-man.fish Update .config/packages/archgirlie --- dot_config/fish/conf.d/30-man.fish | 10 ++++++++-- dot_config/packages/archgirlie | 1 - 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/dot_config/fish/conf.d/30-man.fish b/dot_config/fish/conf.d/30-man.fish index a50fd85..c8a8d58 100644 --- a/dot_config/fish/conf.d/30-man.fish +++ b/dot_config/fish/conf.d/30-man.fish @@ -1,5 +1,11 @@ #!/usr/bin/env fish -if command -v most &>/dev/null - set -gx MANPAGER most +if command -v bat &>/dev/null + set batcmd bat +else if command -v batcat &>/dev/null + set batcmd batcat +end + +if set -q batcmd + set -gx MANPAGER "sh -c 'col -bx | $batcmd -l man -p'" end diff --git a/dot_config/packages/archgirlie b/dot_config/packages/archgirlie index c650bb8..0c2bc8a 100644 --- a/dot_config/packages/archgirlie +++ b/dot_config/packages/archgirlie @@ -1,4 +1,3 @@ - -> Avoid running yay as root/sudo. aic94xx-firmware alsa-utils amfora