-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstarship.toml
More file actions
88 lines (71 loc) · 1.8 KB
/
starship.toml
File metadata and controls
88 lines (71 loc) · 1.8 KB
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
85
86
87
"$schema" = 'https://starship.rs/config-schema.json'
add_newline = false
[hostname]
# disabled = true
ssh_only = true
format = '[$ssh_symbol$hostname]($style) '
ssh_symbol = "@"
style = "yellow"
[username]
format = '[$user]($style)'
style_user = "yellow"
[directory]
truncation_length = 4
truncate_to_repo = false
[git_branch]
truncation_length = 15
[git_status]
untracked = ""
stashed = "STASHED"
[battery]
disabled = true
full_symbol = "🔋 "
charging_symbol = "⚡️ "
discharging_symbol = "💀 "
[nodejs]
disabled = true
[memory_usage]
disabled = true
threshold = -1
symbol = " "
style = "bold dimmed green"
[ruby]
disabled = false
symbol = "🔺 "
[custom.ssh_no_keys]
description = "SSH missing keys"
when = "ssh-add -l | grep -q 'no identities'"
command = "echo 🚫"
format = "$symbol[$output]($style) "
shell = ["bash", "--noprofile", "--norc"]
symbol = "🔑"
style = "bold fg:red"
#
# [custom.ssh_keys]
# description = "SSH key count"
# when = "ssh-add -l | grep -v -q 'no identities'"
# command = "ssh-add -l | grep -v 'no identities' | wc -l"
# format = "$symbol[$output]($style) "
# shell = ["bash", "--noprofile", "--norc"]
# symbol = "🔑"
# style = "bold fg:green"
[custom.primary_key_locked]
description = "SSH key count"
when = "! ssh-add -l | grep -v 'no identities' | egrep $HOME/.ssh/id_rsa"
symbol = "§"
style = "red"
[custom.primary_key_unlocked]
description = "SSH key count"
when = "ssh-add -l | grep -v 'no identities' | egrep $HOME/.ssh/id_rsa"
symbol = "§"
style = "green"
[custom.secondary_key_locked]
description = "SSH key count"
when = "! ssh-add -l | grep -v 'no identities' | egrep newmasterkey"
symbol = "§"
style = "red"
[custom.secondary_key_unlocked]
description = "SSH key count"
when = "ssh-add -l | grep -v 'no identities' | egrep newmasterkey"
symbol = "§"
style = "green"