mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 10:01:14 -03:00
uvar migration: remove extra message if there were no color uvars
This commit is contained in:
@@ -10,7 +10,8 @@ function __fish_theme_migrate
|
|||||||
set -l removing_uvars false
|
set -l removing_uvars false
|
||||||
set -l msg
|
set -l msg
|
||||||
# Copy legacy uvars to globals.
|
# Copy legacy uvars to globals.
|
||||||
if set -l theme_uvars (__fish_theme_variables --universal)
|
set -l theme_uvars (__fish_theme_variables --universal)
|
||||||
|
if set -q theme_uvars[1]
|
||||||
set removing_uvars true
|
set removing_uvars true
|
||||||
set -l msg_suffix .
|
set -l msg_suffix .
|
||||||
if not __fish_config_theme_uvars_subset_of_historical_default $theme_uvars
|
if not __fish_config_theme_uvars_subset_of_historical_default $theme_uvars
|
||||||
|
|||||||
@@ -100,8 +100,6 @@ echo no default universal variables
|
|||||||
provoke-migration
|
provoke-migration
|
||||||
$fish -c __fish_theme_migrate
|
$fish -c __fish_theme_migrate
|
||||||
# CHECK: {{\x1b\[1m}}fish:{{\x1b\[m}} {{upgraded.*}}
|
# CHECK: {{\x1b\[1m}}fish:{{\x1b\[m}} {{upgraded.*}}
|
||||||
# CHECK: {{.*Color.*no.longer.*universal.*}}
|
|
||||||
# CHECK: {{.*restart.*}}
|
|
||||||
# CHECK: {{.*fish_key_bindings.*no.longer.*universal.*}}
|
# CHECK: {{.*fish_key_bindings.*no.longer.*universal.*}}
|
||||||
# CHECK: Migrated {{.*}} {{\S*}}/xdg_config_home/fish/conf.d/fish_frozen_key_bindings.fish{{\x1b\[m}}
|
# CHECK: Migrated {{.*}} {{\S*}}/xdg_config_home/fish/conf.d/fish_frozen_key_bindings.fish{{\x1b\[m}}
|
||||||
# CHECK: {{.*help relnotes.*}}
|
# CHECK: {{.*help relnotes.*}}
|
||||||
|
|||||||
Reference in New Issue
Block a user