From f52face856e717defeca673a5df6054b0ad5e190 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sat, 25 Jan 2025 06:39:08 +0100 Subject: * Merge files into 04editor.fish modified: conf.d/04editor.fish deleted: conf.d/04pager.fish --- conf.d/04pager.fish | 53 ----------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 conf.d/04pager.fish (limited to 'conf.d/04pager.fish') diff --git a/conf.d/04pager.fish b/conf.d/04pager.fish deleted file mode 100644 index 688747b..0000000 --- a/conf.d/04pager.fish +++ /dev/null @@ -1,53 +0,0 @@ -if status is-interactive - -# Pagers to look for by order of preference -set -f pagers 'moar' 'less' 'most' 'more' - -# Find a suitable pager -set -f found_pager (find_prog $pagers) - -if test -n "$found_pager" - - switch $found_pager - case 'moar' - set -x MOAR '--colors=auto --no-linenumbers' - alias less 'moar' - alias most 'moar' - alias more 'moar' - alias pager 'moar' - alias rawpager 'moar' - case 'less' - if test -z "$LESSHISTFILE" - set -x LESSHISTFILE '-' - end - alias most 'less' - alias more 'less' - alias pager 'less' - alias rawpager 'less -r' - case 'most' - if test -z "$MOST_INITFILE" - set -x MOST_INITFILE "$HOME/.config/most/config" - end - alias more 'most' - alias less 'most' - alias pager 'most' - alias rawpager 'most' - case 'more' - alias less 'more' - alias most 'more' - alias pager 'more' - alias rawpager 'more' - end - - if command -sq 'bat' - set -x MANROFFOPT '-c' - set -x MANPAGER 'fish -c "col -bx | bat -l man -p"' - end - - # If $PAGER is unset, set it - if test -z "$PAGER" - set -x PAGER $found_pager - end -end - -end -- cgit v1.3.1