set -l project_root (path resolve (path dirname (status filename))/..)

source $project_root/functions/tide.fish
source $project_root/functions/__tide_terminal_light_color.fish
source $project_root/functions/__tide_apply_terminal_appearance.fish
source $project_root/conf.d/tide_terminal_appearance.fish

set -l theme_handler (
    functions --handlers-type variable |
        string match 'fish_terminal_color_theme *'
)
printf '\nHANDLER|%s\n' (string escape -- $theme_handler)

functions -q __tide_terminal_install_bindings
and printf 'LEGACY_BINDINGS|present\n'
or printf 'LEGACY_BINDINGS|absent\n'
