Closed
Description
Current Behavior
I wanted to have the exit code + symbol for any errors on the right side of my prompt. However it is only showing the general error symbol, instead of a more specific one.
Expected Behavior
If I for example run the command öasheofiaugse
it should show me the symbol
. However instead it just shows the general
symbol. (Note: These are Nerd Font specific glyphs)
Additional context/Screenshots
Environment
- Starship version: 1.20.1
- fish version: fish, version 3.6.0
- Operating system: Linux Mint 6.0.0
- Terminal emulator: Built in Terminal Emulator in LMDE (GNOME Terminal) 3.46.8
- Git Commit Hash: f505324
- Branch/Tag: master
- Rust Version: rustc 1.80.0 (051478957 2024-07-21)
- Rust channel: release
- Build Time: 2024-07-27 09:09:51 +00:00
Relevant Shell Configuration
if status is-interactive
# Commands to run in interactive sessions can go here
end
# Initialize zoxide
zoxide init --cmd cd fish | source
# Initialize Starship
starship init fish | source
# Run Fastfetch at the start and add a newline
fastfetch --config ~/.config/fastfetch/minimal_config.jsonc
# Alias the ls command to instead use lsd
alias ls="lsd"
# Add Rust to $PATH variable.
source "$HOME/.cargo/env.fish"
# Export new LS_COLORS variable from vivid.
set -gx LS_COLORS "$(vivid generate catppuccin-macchiato)"
# Set the fish greeting to a New Line.
set -g fish_greeting \n
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
Starship Configuration
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
format = '''
[](fg:first bg:black)$username[](fg:prev_fg bg:second)$hostname[](fg:prev_bg bg:third)$directory[](fg:prev_bg bg:fourth)$git_branch$git_status[](fg:prev_bg bg:black)$fill$status
$character
'''
palette = 'cyan'
[username]
style_user = 'inverted fg:prev_fg bg:prev_bg'
style_root = 'fg:red bg:prev_fg'
format = '[ $user ]($style)'
show_always = true
[hostname]
ssh_only = true
ssh_symbol = ''
trim_at = ''
style = 'fg:black bg:prev_bg'
format = '[ $hostname $ssh_symbol ]($style)'
[directory]
read_only = ' '
read_only_style = 'bg:prev_bg fg:first'
style = 'fg:black bg:prev_bg'
home_symbol = ' ~'
format = '[ $path ]($style)[($read_only)]($read_only_style)'
[git_branch]
style = 'bg:prev_bg fg:black'
format = '[ $symbol$branch(:$remote_branch)]($style)'
[git_status]
format = '([ \[$all_status$ahead_behind\]]($style))'
conflicted = ''
ahead = '⇡${count}'
diverged = '⇕⇡${ahead_count}⇣${behind_count}'
behind = '⇣${count}'
style = 'bg:prev_bg fg:dark_red'
[fill]
symbol = ' '
[status]
format = '([$symbol $status]($style))'
symbol = ''
not_executable_symbol = ''
not_found_symbol = ''
sigint_symbol = ''
signal_symbol = ''
disabled = false
[character]
success_symbol = '[❯](bold green)'
error_symbol = '[✘](bold red)'
format = '$symbol '
[palettes.purple]
first = '#592c78'
second = '#9043c5'
third = '#8f64b7'
fourth = '#c1a1d7'
rust = '#764025'
dark_red = '#a92323'
[palettes.cyan]
first = '#345f72'
second = '#458cad'
third = '#6da3be'
fourth = '#8eaebd'
rust = '#764025'
dark_red = '#a92323'
# Don't forget to add execution time and exit code to right prompt!
# Don't forget to add battery low indicator on the right prompt!
# Don't forget to maybe change the hostname to only show ssh or not. Also add the OS thingy to the top of the prompt and maybe time.
# Add transient prompt
# Add multiple Line prompt
[os]
disabled = false
[os.symbols]
AlmaLinux = ""
Alpine = ""
Android = ""
Arch = ""
Artix = ""
CentOS = ""
Debian = ""
EndeavourOS = ""
Fedora = ""
FreeBSD = ""
Garuda = ""
Gentoo = ""
HardenedBSD = ""
Kali = ""
Linux = ""
Macos = ""
Manjaro = ""
Mint = ""
NixOS = ""
OpenBSD = ""
openEuler = "🦉"
openSUSE = ""
Pop = ""
Raspbian = ""
Redhat = ""
RedHatEnterprise = ""
RockyLinux = ""
Solus = ""
SUSE = " "
Ubuntu = ""
Unknown = ""
Void = " "
Windows = ""