Skip to content

shell_space: use std dirs now that shells is gone - #1302

Open
qodelicious wants to merge 1 commit into
nushell:mainfrom
qodelicious:fix-shell-space-workspaces
Open

qodelicious wants to merge 1 commit into
nushell:mainfrom
qodelicious:fix-shell-space-workspaces

Conversation

@qodelicious

Copy link
Copy Markdown
Contributor

The shell_space prompt was broken in two ways on current nushell. shells doesn't exist anymore (the directory ring lives in std/dirs), and each only takes one closure parameter now, so the file didn't even parse.

It now uses dirs from std/dirs with enumerate, so the right prompt still shows the time followed by the ring indexes, with the active one in green.

Tested on 0.116.1 by sourcing it and adding a couple of dirs with dirs add, the prompt shows 0 1 2 with the right one highlighted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant