From b9597e57747f227317affdfa2f97fee8e167c33f Mon Sep 17 00:00:00 2001 From: Robin Townsend Date: Sat, 2 Jan 2021 20:08:23 +0000 Subject: [PATCH] starship: remove deprecated character.symbol setting Fixes #1550 PR #1695 --- modules/programs/starship.nix | 5 ++++- tests/modules/programs/starship/settings-expected.toml | 3 ++- tests/modules/programs/starship/settings.nix | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/modules/programs/starship.nix b/modules/programs/starship.nix index 89d0deda..99a1fa8e 100644 --- a/modules/programs/starship.nix +++ b/modules/programs/starship.nix @@ -50,7 +50,10 @@ in { "$character" ]; scan_timeout = 10; - character.symbol = "➜"; + character = { + success_symbol = "➜"; + error_symbol = "➜"; + }; } ''; description = '' diff --git a/tests/modules/programs/starship/settings-expected.toml b/tests/modules/programs/starship/settings-expected.toml index 8ebee6ac..ee07a02e 100644 --- a/tests/modules/programs/starship/settings-expected.toml +++ b/tests/modules/programs/starship/settings-expected.toml @@ -18,7 +18,8 @@ style = "bold yellow" threshold = 30 [character] -symbol = "➜" +error_symbol = "➜" +success_symbol = "➜" [memory_usage] threshold = -1 diff --git a/tests/modules/programs/starship/settings.nix b/tests/modules/programs/starship/settings.nix index ea0e6d8e..4c506c9e 100644 --- a/tests/modules/programs/starship/settings.nix +++ b/tests/modules/programs/starship/settings.nix @@ -17,7 +17,10 @@ with lib; "$character" ]; scan_timeout = 10; - character.symbol = "➜"; + character = { + success_symbol = "➜"; + error_symbol = "➜"; + }; package.disabled = true; memory_usage.threshold = -1; aws.style = "bold blue";