Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions fish/conf.d/bat.fish
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ abbr b bat
# Highlight help messages
abbr --position anywhere -- --help '--help | bat -plhelp'

# Use bat for man pages
set -gx MANPAGER "sh -c 'sed -u -e \"s/\\x1B\[[0-9;]*m//g; s/.\\x08//g\" | bat -p -lman'"

# Make less more usable
set -gx LESS "--ignore-case --no-histdups --color=s+y"
3 changes: 0 additions & 3 deletions fish/conf.d/theme.fish
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ function __so_apply_theme --on-variable fish_terminal_color_theme
# Bat and delta both use `BAT_THEME`.
set -gx BAT_THEME "rose-pine-$theme_variant"

# Use Solarized for man pages because Rosé Pine doesn't support man page highlighting.
set -gx MANPAGER "sh -c 'sed -u -e \"s/\\x1B\[[0-9;]*m//g; s/.\\x08//g\" | bat -p -lman --theme \"Solarized ($appearance)\"'"

# delta can detect the background color of the terminal automatically.
#
# But this doesn't work when Delta is embedded in other tools or when its
Expand Down