Skip to content

Commit 60773a2

Browse files
authored
Fix NU_OVERLAYS pre_prompt hook example (#2008)
1 parent e06c7d1 commit 60773a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ currently activated.
105105
```nu
106106
# set NU_OVERLAYS with overlay list, useful for starship prompt
107107
$env.config.hooks.pre_prompt = ($env.config.hooks.pre_prompt | append {||
108-
let overlays = overlay list | range 1..
108+
let overlays = overlay list | slice 1..
109109
if not ($overlays | is-empty) {
110110
$env.NU_OVERLAYS = $overlays | str join ", "
111111
} else {

0 commit comments

Comments
 (0)