Add starship config and fix install commands.

This commit is contained in:
Anna Rose Wiggins 2025-07-30 12:40:49 -04:00
parent 8959303640
commit bc9ac748d3
4 changed files with 62 additions and 2 deletions

5
starship/readme.md Normal file
View file

@ -0,0 +1,5 @@
## Usage
```
cp starship.toml ~/.config/
```

55
starship/starship.toml Normal file
View file

@ -0,0 +1,55 @@
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# Inserts a blank line between shell prompts
add_newline = true
format = """
$username\
$hostname\
$directory\
${custom.dcontrol}\
$all
"""
# Replace the '' symbol in the prompt with '➜'
[character] # The name of the module we are configuring is 'character'
success_symbol = '[\$](bold green)' # The 'success_symbol' segment is being set to '➜' with the color 'bold green'
error_symbol = '[\$](bold red)'
[cmd_duration]
disabled = true
[custom.dcontrol]
format='[\[$symbol $output\]]($style) '
command = "echo $DOCKER_HOST"
symbol=' '
style="bold red"
when = '[ "$DOCKER_HOST" != "" ]'
[directory]
truncation_length = 0
format = '[$path]($style)[$read_only]($read_only_style)\] '
[git_branch]
format = '[\[$symbol $branch\]]($style) '
symbol = ' '
[golang]
format = '[$symbol]($style)'
[hostname]
format = '[@$hostname$ssh_symbol:]($style)'
style = 'yellow'
ssh_only = false
[package]
disabled = true
[ruby]
format = '[$symbol]($style)'
[username]
format = '\[[$user]($style)'
style_user = 'yellow'
show_always = true