Skip to content

Commit b150527

Browse files
feat(segment): update pnpm icon
1 parent 5c9c70b commit b150527

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/segments/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func (n *Node) loadContext() {
6464
fileName: "pnpm-lock.yaml",
6565
name: "pnpm",
6666
iconProperty: PnpmIcon,
67-
defaultIcon: "\U000F02C1",
67+
defaultIcon: "\ue865",
6868
},
6969
{
7070
fileName: "yarn.lock",

src/segments/pnpm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ func (n *Pnpm) Enabled() bool {
2020
}
2121

2222
func (n *Pnpm) Template() string {
23-
return " \U000F02C1 {{.Full}} "
23+
return " \ue865 {{.Full}} "
2424
}

src/segments/pnpm_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func TestPnpm(t *testing.T) {
1313
ExpectedString string
1414
Version string
1515
}{
16-
{Case: "1.0.0", ExpectedString: "\U000F02C1 1.0.0", Version: "1.0.0"},
16+
{Case: "1.0.0", ExpectedString: "\ue865 1.0.0", Version: "1.0.0"},
1717
}
1818
for _, tc := range cases {
1919
params := &mockedLanguageParams{

website/docs/segments/cli/pnpm.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import Config from "@site/src/components/Config.js";
1919
powerline_symbol: "\uE0B0",
2020
foreground: "#000000",
2121
background: "#F9AD00",
22-
template: " \uDB80\uDEC1 {{ .Full }} ",
22+
template: " \ue865 {{ .Full }} ",
2323
}}
2424
/>
2525

@@ -41,7 +41,7 @@ import Config from "@site/src/components/Config.js";
4141
:::note default template
4242

4343
```template
44-
\uDB80\uDEC1 {{.Full}}
44+
\ue865 {{.Full}}
4545
```
4646

4747
:::

0 commit comments

Comments
 (0)