-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstarship.toml
84 lines (63 loc) · 1.94 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# Inserts a blank line between shell prompts
add_newline = false
line_break.disabled = false
# right prompt. You can customize this prompt to show information when the prompt is on the right side of the terminal.
right_format = "$kubernetes$aws${custom.aws_expires_gt_1h}${custom.aws_expires_lt_1h}"
# the order of the elements in the prompt
format = "$character$directory$all"
# the prompt character
[character]
format = "$symbol "
error_symbol = "[λ](bold red)"
success_symbol = "[λ](bold green)"
[custom.aws_expires_gt_1h]
description = "Show aws session sso expiration time greater than 1h."
when = '[ $($HOME/.dotfiles/scripts/show_aws_session_expires_prompt.sh 3600) != "" ]'
format = "[$output]($style) $symbol"
command = "$HOME/.dotfiles/scripts/show_aws_session_expires_prompt.sh 3600"
style = "bold green"
[custom.aws_expires_lt_1h]
description = "Show aws session sso expiration time less than 1h. This is a warning"
when = '[ $($HOME/.dotfiles/scripts/show_aws_session_expires_prompt.sh 0 3600) != "" ]'
format = "$symbol[$output]($style)"
style = "bold red"
command = "$HOME/.dotfiles/scripts/show_aws_session_expires_prompt.sh 0 3600"
[aws]
format = "on [$symbol$profile(\\($region\\))]($style) "
style = "bold #FF9900"
[aws.profile_aliases]
"corujaengi" = "sandbox"
"corujaprod" = "prod"
[directory]
read_only = " "
[kubernetes]
disabled = false
symbol = "⎈ "
format = "[$symbol$context(\\($namespace\\))]($style) "
style = "#326CE5 bold"
[gcloud]
disabled = true
[cmd_duration]
min_time = 100
show_milliseconds = true
min_time_to_notify = 10000
show_notifications = true
style = "bold yellow"
[battery]
disabled = true
[docker_context]
disabled = true
[memory_usage]
symbol = " "
[meson]
symbol = " "
[nim]
symbol = " "
[package]
symbol = " "
[nodejs]
symbol = "[⬢](bold green) "
[golang]
symbol = "[go](bold cyan) "