diff --git a/modules/prompt/shell_space.nu b/modules/prompt/shell_space.nu index 816502a3..855633a0 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 }