<commit_before># Set defaults
set -q fry_auto_switch  ; or set -U fry_auto_switch 0
set -q fry_prepend_path ; or set -U fry_prepend_path 0
set -q fry_rubies       ; or set -U fry_rubies $HOME/.rubies

test -d $fry_rubies; or mkdir -p $fry_rubies

# Installer
function __fry_installer_toggle --on-variable fry_installer
	set -l installer fry-installer-$fry_installer

	if functions -q $installer
		eval $installer
	else
		functions -e __fry_install_ruby
		functions -e __fry_install_rubies
	end
end

if not set -q fry_installer
	for command in (fry installers)
		if type -f $command >/dev/null
			set -U fry_installer $command
		end
	end
else
	__fry_installer_toggle
end

# Auto-switch
function __fry_auto_switch_toggle --on-variable fry_auto_switch
	if test $fry_auto_switch = 1
		function __fry_auto_switch --on-variable PWD --description 'Auto-switch ruby version from .ruby-version file'
			status --is-command-substitution; and return

			set -l version_file (__fry_find_version_file)
			test -n "$version_file"; or return

			set -l version_data (cat $version_file)
			test -n "$version_data"; or return

			fry use $version_data >/dev/null<commit_msg>conf.d: quite type check<commit_after># Set defaults
set -q fry_auto_switch  ; or set -U fry_auto_switch 0
set -q fry_prepend_path ; or set -U fry_prepend_path 0
set -q fry_rubies       ; or set -U fry_rubies $HOME/.rubies

test -d $fry_rubies; or mkdir -p $fry_rubies

# Installer
function __fry_installer_toggle --on-variable fry_installer
	set -l installer fry-installer-$fry_installer

	if functions -q $installer
		eval $installer
	else
		functions -e __fry_install_ruby
		functions -e __fry_install_rubies
	end
end

if not set -q fry_installer
	for command in (fry installers)
		if type -qf $command >/dev/null
			set -U fry_installer $command
		end
	end
else
	__fry_installer_toggle
end

# Auto-switch
function __fry_auto_switch_toggle --on-variable fry_auto_switch
	if test $fry_auto_switch = 1
		function __fry_auto_switch --on-variable PWD --description 'Auto-switch ruby version from .ruby-version file'
			status --is-command-substitution; and return

			set -l version_file (__fry_find_version_file)
			test -n "$version_file"; or return

			set -l version_data (cat $version_file)
			test -n "$version_data"; or return

			fry use $version_data >/dev/null
{'fraction_non_alphanumeric': 0.07566638005159071, 'fraction_numerical': 0.0025795356835769563, 'mean_word_length': 3.8784067085953877, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3572947', 'n_tokens_mistral': 908, 'n_tokens_neox': 821, 'n_words': 260}