Skip to content

Shell Indicator adding additional space after. #6381

Open
@ryz0rg

Description

Current Behavior

After adding shell indicator to my starhip config, an additional space is being added. The space is not being styled.

Also happening with nu shell.

Expected Behavior

I would expect for the space to not be added.

Additional context/Screenshots

image

Possible Solution

Environment

  • Starship version: 1.20.1
  • pwsh version: PowerShell 7.4.6
  • Operating system: Windows 10.0.27729
  • Terminal emulator:
  • Git Commit Hash: f505324
  • Branch/Tag: master
  • Rust Version: rustc 1.80.0 (051478957 2024-07-21)
  • Rust channel: stable-x86_64-pc-windows-msvc release
  • Build Time: 2024-07-27 09:12:42 +00:00

Relevant Shell Configuration

$PSStyle.FileInfo.Directory = ""
Invoke-Expression (&starship init powershell)

Starship Configuration

# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'

format = """
[](surface1)\
$os$hostname\
$shell\
[](bg:surface2 fg:surface1)\
$directory\
[](fg:surface2 bg:red)\
$git_branch\
$git_status\
[](fg:red bg:blue)\
$python\
[](fg:blue bg:green)\
$time\
[](fg:green)\
$line_break$character"""

# Sets user-defined palette
# Palettes must be defined _after_ this line
palette = "catppuccin_mocha"
add_newline = false

# Starship modules
[character]
# Note the use of Catppuccin color 'peach'
success_symbol = "[(green) ](mauve)"
error_symbol = "[(red) ](mauve)"

[shell]
style = "bg:surface1 fg:subtext0"
powershell_indicator = "[ 󰨊]($style)"
nu_indicator = "[ 󰟆]($style)"
disabled = false


[hostname]
ssh_only = false
disabled = false
style = "bg:surface1 fg:subtext0"
format = "[ $hostname]($style)"

[os]
disabled = false
style = "bg:surface1"

[os.symbols]
Ubuntu = ""
Windows = ""

[git_branch]
symbol = "󰊢"
style = "fg:mantle bg:red"
format = '[ $symbol $branch ]($style)'

[git_status]
style = "fg:mantle bg:red"
format = '[($all_status$ahead_behind )]($style)'

[python]
symbol = ""
format = '[ $symbol( $version)[( $virtualenv)](fg:bold green bg:blue) ](fg:mantle bg:blue)'

[time]
style = "fg:mantle bg:green"
disabled = false
time_format = "%R"
format = '[  $time ]($style)'

[line_break]
disabled = false

[directory]
style = "bg:surface2 fg:subtext1"
format = "[ $path ]($style)"
truncation_length = 3
truncation_symbol = "…/"

[palettes.catppuccin_mocha]
rosewater = "#f5e0dc"
flamingo = "#f2cdcd"
pink = "#f5c2e7"
mauve = "#cba6f7"
red = "#f38ba8"
maroon = "#eba0ac"
peach = "#fab387"
yellow = "#f9e2af"
green = "#a6e3a1"
teal = "#94e2d5"
sky = "#89dceb"
sapphire = "#74c7ec"
blue = "#89b4fa"
lavender = "#b4befe"
text = "#cdd6f4"
subtext1 = "#bac2de"
subtext0 = "#a6adc8"
overlay2 = "#9399b2"
overlay1 = "#7f849c"
overlay0 = "#6c7086"
surface2 = "#585b70"
surface1 = "#45475a"
surface0 = "#313244"
base = "#1e1e2e"
mantle = "#181825"
crust = "#11111b"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working as expected.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions