Skip to content

Commit b4c20ab

Browse files
committed
Fix markdown links (../book/hooks => ../book/hooks.md)in cookbook setup documentation
1 parent e6fc730 commit b4c20ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cookbook/setup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ To be most compatible, the `starship` binary will run every prompt render and
9696
is absolute stateless.
9797
Nushell, however, is very stateful in a single instance.
9898

99-
[Hooks](../book/hooks) allow registration of
99+
[Hooks](../book/hooks.md) allow registration of
100100
custom callback functions.
101101
In this case, the `pre_prompt` hook is very useful.
102102
With it, we can export state information as an environment variable, for
103-
example, what [overlays](../book/overlays) are
103+
example, what [overlays](../book/overlays.md) are
104104
currently activated.
105105

106106
```nu

zh-CN/cookbook/setup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ $env.APPDATA
9595
并且是绝对无状态的。
9696
然而,Nushell 在单个实例中是非常有状态的。
9797

98-
[钩子](../book/hooks) 允许注册自定义回调函数。
98+
[钩子](../book/hooks.md) 允许注册自定义回调函数。
9999
在这种情况下,`pre_prompt` 钩子非常有用。
100-
有了它,我们可以将状态信息导出为环境变量,例如,当前激活了哪些 [覆层](../book/overlays)
100+
有了它,我们可以将状态信息导出为环境变量,例如,当前激活了哪些 [覆层](../book/overlays.md)
101101

102102
```nu
103103
# 使用覆层列表设置 NU_OVERLAYS,对 starship 提示有用

0 commit comments

Comments
 (0)