Skip to content

Commit 0c2e1c1

Browse files
committed
fix: removed reference to GHCUP_USE_XDG_DIRS variable for Windows users
1 parent e024e37 commit 0c2e1c1

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.prettierrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

contents/ghcup.mdx

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ GHCup 是一种用于安装 Haskell 的工具,它使得用户可以轻易地
77

88
GHCup 类似 Rustup,可以用于安装 Haskell 工具链。建议搭配 Hackage 和 Stackage 源使用。
99

10-
> 如果想要使用 XDG 规范,可以设置 `GHCUP_USE_XDG_DIRS` 变量
10+
> 对于 Linux、FreeBSD、macOS 用户,如果想要让 GHCup 遵循 XDG 规范,可以使用 `GHCUP_USE_XDG_DIRS` 变量,例如:
1111
>
12-
> Linux、BSD、macOS 用户可在终端使用 `export GHCUP_USE_XDG_DIRS=1`
12+
> ```bash
13+
> export GHCUP_USE_XDG_DIRS=1
14+
> ```
1315
>
14-
> Windows 用户可使用 `$env:GHCUP_USE_XDG_DIRS = 1`
16+
> 还可以将上述内容写入 `~/.profile` 等文件中。
1517
1618
## USTC
1719

0 commit comments

Comments
 (0)