From e9cdf0b0ec024cbb9e4f23825edd1dd99c2e0cc5 Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Sat, 21 Oct 2023 13:05:55 +0200 Subject: [PATCH] Update nushell config --- tree/.config/nushell/config.nu | 6 +++--- tree/.config/nushell/env.nu | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tree/.config/nushell/config.nu b/tree/.config/nushell/config.nu index 6517c6d..bc8888a 100644 --- a/tree/.config/nushell/config.nu +++ b/tree/.config/nushell/config.nu @@ -193,9 +193,9 @@ $env.config = { always_trash: false # always act as if -t was given. Can be overridden with -p } - cd: { - abbreviations: false # allows `cd s/o/f` to expand to `cd some/other/folder` - } + #cd: { + # abbreviations: false # allows `cd s/o/f` to expand to `cd some/other/folder` + #} table: { mode: rounded # basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other diff --git a/tree/.config/nushell/env.nu b/tree/.config/nushell/env.nu index 6e9cfc6..fec11dd 100644 --- a/tree/.config/nushell/env.nu +++ b/tree/.config/nushell/env.nu @@ -13,7 +13,7 @@ def create_left_prompt [] { } let dir = ([ - ($env.PWD | str substring 0..($home | str length) | str replace --string $home "~"), + ($env.PWD | str substring 0..($home | str length) | str replace $home "~"), ($env.PWD | str substring ($home | str length)..) ] | str join) @@ -21,7 +21,7 @@ def create_left_prompt [] { let separator_color = (if (is-admin) { ansi light_red_bold } else { ansi light_green_bold }) let path_segment = $"($path_color)($dir)" - $path_segment | str replace --all --string (char path_sep) $"($separator_color)/($path_color)" + $path_segment | str replace --all (char path_sep) $"($separator_color)/($path_color)" } def create_right_prompt [] {