Skip to content

Commit 570045f

Browse files
♻️ refactor(starship): Use included sudo plugin.
1 parent a3111d9 commit 570045f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.config/starship.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ add_newline = false
44
# Prompt order (to place custom commands)
55
format = """\
66
$username\
7-
${custom.sudo}\
7+
$sudo\
88
$hostname\
99
$shell\
1010
$shlvl\
@@ -71,11 +71,10 @@ symbol = "node "
7171
[package]
7272
symbol = ""
7373

74-
[custom.sudo]
75-
command = "echo sudo"
76-
when = "sudo -n true"
74+
[sudo]
7775
style = "bold fg:#ffb05b"
78-
format = "\\([$output]($style)\\) "
76+
disabled = false
77+
format = "\\([sudo]($style)\\) "
7978

8079
[custom.node]
8180
command = "node-info"

0 commit comments

Comments
 (0)