starship: error_symbol in character module seems not to work

Bug Report

Current Behavior

All features work well, but only the error_symbol seems not to work

Expected Behavior

A specified string in the configuration file should be shown when an issued command is failed

Additional context/Screenshots

Possible Solution

Environment

  • Starship version: 0.58
  • Shell type: zsh
  • Shell version: zsh 5.4.2 (x86_64-ubuntu-linux-gnu)
  • Shell plugin manager: oh-my-zsh
  • Terminal emulator: GNOME Terminal 3.28.2
  • Operating system: Ubuntu 18.04

Relevant Shell Configuration

# Your configuration here

Starship Configuration

[battery]
full_symbol = "๐Ÿ”‹"
charging_symbol = "๐Ÿ”Œ"
discharging_symbol = "โšก"

[[battery.display]]
threshold = 30
style = "bold red"

[character]
error_symbol = "[โœ—](bold red) "

[cmd_duration]
min_time = 2_000
format = " took [$duration]($style)"

[directory]
truncation_length = 5
format = "[$path](fg:#4285f4)[$lock_symbol]($lock_style) "

[git_branch]
format = " [$branch]($style) "
style = "fg:#EF7C8E"

[git_commit]
commit_hash_length = 8
style = "bold white"

[git_state]
format = '[\($state( $progress_current of $progress_total)\)]($style) '

[git_status]
conflicted = "โš”๏ธ "
ahead = "๐ŸŽ๏ธ ๐Ÿ’จ ร—${count }"
behind = "๐Ÿขร—${count} "
diverged = "๐Ÿ”ฑ ๐ŸŽ๏ธ ๐Ÿ’จ ร—${ahead_count} ๐Ÿข ร—${behind_count}"
untracked = "๐Ÿพร—${count} "
stashed = "๐Ÿ“ฆ "
modified = "๐Ÿ“ร—${count} "
staged = "๐Ÿ—ƒ๏ธร—${count} "
renamed = "๐Ÿ“›ร—${count} "
deleted = "๐Ÿ—‘๏ธร—${count} "
style = "bright-white"
format = "$all_status$ahead_behind"

[hostname]
ssh_only = false
format = "<[$hostname]($style)>"
trim_at = "-"
style = "bold dimmed white"
disabled = true

[julia]
format = "[$symbol$version]($style) "
symbol = "เฎƒ "
style = "bold green"
disabled = true

[memory_usage]
format = "$symbol[${ram}( | ${swap})]($style) "
threshold = 70
style = "bold dimmed white"
disabled = false

[package]
disabled = true

[python]
format = "[$symbol$version]($style) "
style = "bold green"
symbol = "python "

[rust]
format = "[$symbol$version]($style) "
style = "bold green"
disabled = true

[nodejs]
format = "[$symbol$version](#F8D210) "
symbol = "nodejs_"
disabled = true

[golang]
format = "[$symbol$version](#B4F8C8) "
symbol = "golang_"
disabled = true

[vagrant]
disabled = true

[username]
style_user = "bold dimmed blue"
show_always = false

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

@martinlindhe The bug youโ€™re encountering was likely fixed in this commit, which should be available in the next release: https://github.com/starship/starship/commit/465e6fc4be64bf830d2c98bc3f56c2601acef775