diff --git a/conf.d/fish_ai.fish b/conf.d/fish_ai.fish index 6f42b69..358a2fc 100644 --- a/conf.d/fish_ai.fish +++ b/conf.d/fish_ai.fish @@ -145,7 +145,12 @@ function autoconfig_gh_models --description "Deploy configuration for GitHub Mod end function show_progess_indicator --description "Show a progress indicator." + if type -q fish_right_prompt + set rplen (string length -v (fish_right_prompt)[-1]) + else + set rplen 0 + end # Move the cursor to the end of the line and insert progress indicator - tput hpa (math $COLUMNS - (string length -v (fish_right_prompt)[-1]) - 2) + tput hpa (math $COLUMNS - $rplen - 2) echo -n '⏳' end diff --git a/pyproject.toml b/pyproject.toml index 1b9428b..dff1560 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "fish_ai" -version = "1.0.2" +version = "1.0.3" authors = [{ name = "Bastian Fredriksson", email = "realiserad@gmail.com" }] description = "Provides core functionality for fish-ai, an AI plugin for the fish shell." readme = "README.md"