diff --git a/functions/__fzf_search_history.fish b/functions/__fzf_search_history.fish index baf5ecb9..e59e412c 100644 --- a/functions/__fzf_search_history.fish +++ b/functions/__fzf_search_history.fish @@ -6,7 +6,7 @@ function __fzf_search_history --description "Search command history. Replace the builtin history --null --show-time="%m-%d %H:%M:%S | " | fzf --read0 --tiebreak=index --query=(commandline) \ # preview current command in a window at the bottom 3 lines tall - --preview="echo {4..}" \ + --preview="echo -- {4..} | bat --plain --color=always --language=fish" \ --preview-window="bottom:3:wrap" | string collect )