From bddb7f25ef967e5a1141b0af32f380b70aa49ca0 Mon Sep 17 00:00:00 2001 From: qodelicious <162776175+qodelicious@users.noreply.github.com> Date: Thu, 22 Oct 2026 11:21:52 +0000 Subject: [PATCH] shell_space: use std dirs now that shells is gone --- modules/prompt/shell_space.nu | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/prompt/shell_space.nu b/modules/prompt/shell_space.nu index 816502a38..855633a09 100644 --- a/modules/prompt/shell_space.nu +++ b/modules/prompt/shell_space.nu @@ -1,10 +1,12 @@ -# use shells to to show workspaces +use std/dirs + +# use the std dirs ring to show workspaces def workspaces [] { - shells | each {|item index| - if $item.active { - $"(ansi green)($index) " + dirs | enumerate | each {|it| + if $it.item.active { + $"(ansi green)($it.index) " } else { - $"(ansi blue)($index) " + $"(ansi blue)($it.index) " } }| str join }