changed starship configuration again
This commit is contained in:
parent
1d254adcfe
commit
04483ed6aa
@ -1,83 +1,68 @@
|
|||||||
format = """
|
# Inserts a blank line between shell prompts for better readability.
|
||||||
$username\
|
add_newline = true
|
||||||
$hostname\
|
# Timeout for starship to scan files in the current directory.
|
||||||
|
command_timeout = 1000
|
||||||
|
|
||||||
|
|
||||||
|
# --- Main prompt structure ---
|
||||||
|
# Defines the order of modules.
|
||||||
|
# Starship intelligently handles powerline separators:
|
||||||
|
# The foreground of the separator is the background of its own module.
|
||||||
|
# The background of the separator is the background of the *next* module.
|
||||||
|
format = """\
|
||||||
$directory\
|
$directory\
|
||||||
$git_branch\
|
$git_branch\
|
||||||
$git_state\
|
|
||||||
$git_status\
|
$git_status\
|
||||||
$git_metrics\
|
$cmd_duration\
|
||||||
$fill\
|
|
||||||
$cmd_duration $jobs\
|
|
||||||
$line_break\
|
$line_break\
|
||||||
|
$status\
|
||||||
$character\
|
$character\
|
||||||
"""
|
"""
|
||||||
add_newline = false
|
|
||||||
|
|
||||||
[fill]
|
# --- Module Configurations ---
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[directory]
|
[directory]
|
||||||
style = "blue"
|
# Style for directory path
|
||||||
read_only = " "
|
style = "#8EC07C"
|
||||||
truncation_length = 4
|
format = "[ $path ]($style)"
|
||||||
truncate_to_repo = false
|
truncation_length = 3 # Max number of parent directories to show
|
||||||
|
truncate_to_repo = true # If in a git repo, show path relative to repo root if shorter
|
||||||
[character]
|
home_symbol = " ~" # Icon for home directory (nf-fa-home)
|
||||||
success_symbol = "[~> ](bold yellow)"
|
read_only = " " # Icon for read-only directory (nf-fa-lock)
|
||||||
error_symbol = "[~> ](bold red)"
|
read_only_style = "red" # Make lock icon redon directory's aqua background
|
||||||
vicmd_symbol = "[~> ](bold green)"
|
|
||||||
|
|
||||||
[git_branch]
|
[git_branch]
|
||||||
symbol = " "
|
symbol = " " # Git branch icon (nf-fa-code_fork)
|
||||||
format = 'on [$symbol$branch(:$remote_branch)]($style) '
|
style = "bold #FE8019"
|
||||||
ignore_branches=[]
|
format = "[ $symbol$branch ]($style)"
|
||||||
style = "bold purple"
|
|
||||||
|
|
||||||
|
|
||||||
[git_status]
|
[git_status]
|
||||||
format = '([\[$all_status$ahead_behind\]]($style) )'
|
format='([\[$all_status$ahead_behind\]](green) )'
|
||||||
style = "cyan"
|
|
||||||
|
|
||||||
[git_state]
|
|
||||||
format = '\([$state( $progress_current/$progress_total)]($style)\) '
|
|
||||||
style = "bright-black"
|
|
||||||
|
|
||||||
[git_metrics]
|
|
||||||
disabled = false
|
|
||||||
|
|
||||||
[jobs]
|
|
||||||
symbol = ""
|
|
||||||
style = "bold red"
|
|
||||||
number_threshold = 1
|
|
||||||
format = "[$symbol]($style)"
|
|
||||||
|
|
||||||
[cmd_duration]
|
[cmd_duration]
|
||||||
format = "[$duration]($style)"
|
min_time = 1000 # Show if command took longer than 1 second
|
||||||
style = "yellow"
|
# Style for command duration (on default terminal background)
|
||||||
|
style = "fg:gruv_yellow"
|
||||||
|
format = "[took $duration]($style) " # <20><> nf-md-timer_sand_complete
|
||||||
|
|
||||||
[memory_usage]
|
[line_break]
|
||||||
symbol = " "
|
# Ensures the prompt character starts on a new line
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
[status]
|
||||||
|
# Shows exit status of the last command if it failed
|
||||||
|
style = "fg:gruv_red" # On default terminal background
|
||||||
|
symbol = "x " # nf-mdi-alert_circle_outline (error icon)
|
||||||
|
format = "[$symbol$status]($style) "
|
||||||
|
disabled = false # Show only on error
|
||||||
|
map_symbol = true # Use specific symbols for different error codes if available
|
||||||
|
|
||||||
|
[character]
|
||||||
|
success_symbol = "[ ~> ](bold green)" # Green ❯ for success
|
||||||
|
error_symbol = "[ ~> ](bold red)" # Red ❯ for error
|
||||||
|
# vicmd_symbol = "[❮](bold gruv_blue)" # Optional: for vi mode indicator
|
||||||
|
|
||||||
[python]
|
[python]
|
||||||
symbol=""
|
symbol=" "
|
||||||
|
pyenv_prefix = "venv "
|
||||||
[c]
|
|
||||||
symbol=""
|
|
||||||
|
|
||||||
[lua]
|
|
||||||
symbol=""
|
|
||||||
|
|
||||||
[rust]
|
|
||||||
symbol = ""
|
|
||||||
|
|
||||||
[time]
|
|
||||||
disabled = false
|
|
||||||
style = "bold yellow"
|
|
||||||
format = "[$time]($style)"
|
|
||||||
|
|
||||||
[custom.stunnel]
|
|
||||||
when = "ps aux | grep stunnel | grep -v grep"
|
|
||||||
command = "ps -o etime= -p $(ps aux | grep stunnel | grep -v grep | awk '{print $2}')"
|
|
||||||
style = "red"
|
|
||||||
format = "[TUNNEL OPEN for $output]($style)"
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user