Skip to content

Instantly share code, notes, and snippets.

@cnDelbert
Created September 23, 2023 06:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cnDelbert/35a73787e54b365ff6280a37dc214548 to your computer and use it in GitHub Desktop.
Save cnDelbert/35a73787e54b365ff6280a37dc214548 to your computer and use it in GitHub Desktop.
A starship config file with full time and directory path.
add_newline = true
format = """
$username$status$hostname$time\
$git_branch$git_commit$git_state$git_metrics$git_status\
$package\
$c\
$cmake\
$dotnet\
$golang\
$java\
$julia\
$kotlin\
$gradle\
$lua\
$nodejs\
$php\
$purescript\
$python\
$ruby\
$nix_shell\
$conda\
$memory_usage\
$env_var\
$custom\
$sudo\
$cmd_duration\
$jobs\
$battery\
$container\
$shell\
$line_break\
$directory$character"""
[username]
style_user = 'red bold'
style_root = 'red bold'
format = '[Delbert]($style) '
disabled = false
show_always = true
[hostname]
ssh_only = false
format = ""
trim_at = ".companyname.com"
disabled = true
[time]
disabled = false
use_12hr = false
style = "bold yellow"
format = '[\[πŸ•™ $time \]]($style) '
time_format = '%Y-%m-%d %a %H:%M:%S'
#utc_time_offset = '-5'
time_range = '00:00:00-23:59:59'
[status]
# style = 'bg:blue'
symbol = 'πŸ”΄'
success_symbol = '🟒'
format = '[\[$symbol$common_meaning$signal_name$maybe_int\]]($style) '
map_symbol = true
disabled = false
[package]
format = 'via [🎁 $version](208 bold) '
disabled = true
[cmake]
disabled = true
[git_branch]
symbol = '🌱 '
style = "bold green"
truncation_length = 40
truncation_symbol = '...'
format = "[$symbol$branch ☁️ $remote_name/$remote_branch]($style)"
ignore_branches = ['master', 'main']
[git_commit]
commit_hash_length = 8
tag_symbol = 'πŸ”– '
format = '[\($hash$tag\)]($style) '
[git_state]
format = '[\($state( $progress_current of $progress_total)\)]($style) '
cherry_pick = '[πŸ’ PICKING](bold red)'
[git_metrics]
disabled = false
added_style = 'bold blue'
format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
[git_status]
conflicted = '🏳'
ahead = 'πŸŽπŸ’¨'
behind = '😰'
diverged = '😡'
up_to_date = 'βœ“'
untracked = '🀷'
stashed = 'πŸ“¦'
modified = 'πŸ“'
staged = '[++\($count\)](green)'
renamed = 'πŸ‘…'
deleted = 'πŸ—‘'
[directory]
truncation_length = 255
# truncation_symbol = '…/'
truncate_to_repo = false
use_logical_path = false
[battery]
full_symbol = 'πŸ”‹ '
charging_symbol = '⚑️ '
discharging_symbol = 'πŸ’€ '
[[battery.display]] # 'bold red' style and discharging_symbol when capacity is between 0% and 10%
threshold = 10
style = 'bold red'
[[battery.display]] # 'bold yellow' style and πŸ’¦ symbol when capacity is between 10% and 30%
threshold = 80
style = 'bold yellow'
discharging_symbol = 'πŸ’¦'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment