Move sample_prompts/themes to share/

They are used by "fish_config" CLI too, so no need to make them
private to webconfig.  Putting them at top-level seems simpler overall.
This commit is contained in:
Johannes Altmanninger
2025-12-13 15:11:46 +01:00
parent dbdecaba6d
commit d8f1a2a24f
48 changed files with 57 additions and 42 deletions

View File

@@ -107,7 +107,7 @@ type fish_mode_prompt
fish_config theme choose non-existent-theme1
# CHECKERR: No such theme: non-existent-theme1
# CHECKERR: Searched {{/\S* (/\S*|and `status list-files tools/web_config/themes`)}}
# CHECKERR: Searched {{/\S* (/\S*|and `status list-files themes`)}}
# This still demos the current theme.
fish_config theme show non-existent-theme2
@@ -156,7 +156,7 @@ fish_config theme show | grep -E '[^-]default|base16-default-dark|custom-from-us
# CHECK: {{.*}}default{{\x1b\[m}}
# Override a default theme with different colors.
__fish_data_with_file tools/web_config/themes/none.theme \
__fish_data_with_file themes/none.theme \
cat >$__fish_config_dir/themes/default.theme
fish_config theme show | grep -E '[^-]default|base16-default-dark' -A1
# CHECK: {{\x1b\[m}}{{\x1b\[4m}}default{{\x1b\[m}}

View File

@@ -3,14 +3,14 @@
prompt_pwd -d 1 /foo/bar/baz
# CHECK: /f/b/baz
prompt_pwd /usr/share/fish/tools/web_config/sample_prompts
# CHECK: /u/s/f/t/w/sample_prompts
prompt_pwd /usr/share/fish/prompts
# CHECK: /u/s/f/prompts
prompt_pwd -D 2 /usr/share/fish/tools/web_config/sample_prompts
# CHECK: /u/s/f/t/web_config/sample_prompts
prompt_pwd -D 2 /usr/share/fish/prompts
# CHECK: /u/s/fish/prompts
prompt_pwd -D 0 /usr/share/fish/tools/web_config/sample_prompts
# CHECK: /u/s/f/t/w/s
prompt_pwd -D 0 /usr/share/fish/prompts
# CHECK: /u/s/f/p
prompt_pwd -d1 -D 3 /usr/share/fish/tools/web_config/-sample_prompts
# CHECK: /u/s/f/tools/web_config/-sample_prompts
prompt_pwd -d1 -D 3 /usr/local/share/fish/prompts
# CHECK: /u/l/share/fish/prompts