-
Notifications
You must be signed in to change notification settings - Fork 12
/
starship.toml
31 lines (26 loc) · 1002 Bytes
/
starship.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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
command_timeout = 1500
# # 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'
[docker_context]
disabled = true
[custom.convox]
command = """
set -l CONVOX_CURRENT (cat "$HOME/Library/Preferences/convox/current" | jq -r .name)
if test "$CONVOX_CURRENT" = "staging"; then
echo "Staging 🚧"
else if test "$CONVOX_CURRENT" = "us"; then
echo "US 🇺🇸"
else if test "$CONVOX_CURRENT" = "eu"; then
echo "EU 🇪🇺"
end
"""
when = """
test (string match -r '/code/docspring' $PWD) -a -f "$HOME/Library/Preferences/convox/current"
"""
style = "bold white"
format = '[on](white) [$symbol($output )]($style)'