<commit_before># Load env variables
if test -f ~/.env.fish
    source ~/.env.fish
end

# Hide greeting
function fish_greeting
end

# Better titles
function fish_title
  test (count $argv) -gt 0
    and echo $argv[1]
    or prompt_pwd
end

set -gx EDITOR code -w
set -gx FILTER fzf
set -gx LESS RS

# Set the terminal window to use a dark GTK theme.
if begin; type -q xprop; and set -q WINDOWID; end
    xprop -f _GTK_THEME_VARIANT 8u -set _GTK_THEME_VARIANT "dark" -id $WINDOWID
end<commit_msg>Set EDITOR only if not already set<commit_after># Hide greeting
function fish_greeting
end

# Better titles
function fish_title
  test (count $argv) -gt 0
    and echo $argv[1]
    or prompt_pwd
end

set -q EDITOR
  or set -gx EDITOR code -w
set -gx FILTER fzf
set -gx LESS RS
{'fraction_non_alphanumeric': 0.07272727272727272, 'fraction_numerical': 0.006493506493506494, 'mean_word_length': 3.2596685082872927, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4797178', 'n_tokens_mistral': 301, 'n_tokens_neox': 293, 'n_words': 117}