From 2b3df7e17b4271e81a1a91167f4c435e332313b9 Mon Sep 17 00:00:00 2001 From: notohh Date: Sun, 29 Oct 2023 05:30:35 -0400 Subject: [PATCH] nushell: update syntax --- home/nushell/config.nu | 11 ++++------- home/nushell/env.nu | 4 ++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/home/nushell/config.nu b/home/nushell/config.nu index 6d737b2..2ac6189 100755 --- a/home/nushell/config.nu +++ b/home/nushell/config.nu @@ -38,9 +38,6 @@ $env.config = { rm: { always_trash: false # always act as if -t was given. Can be overridden with -p } - cd: { - abbreviations: true # 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 index_mode: always # "always" show indexes, "never" show indexes, "auto" = show indexes when a table has "index" column @@ -81,14 +78,14 @@ $env.config = { render_right_prompt_on_last_line: false # true or false to enable or disable right prompt to be rendered on last line of the prompt. hooks: { pre_prompt: [{ || - $nothing # replace with source code to run before the prompt is shown + null # replace with source code to run before the prompt is shown }] pre_execution: [{ || - $nothing # replace with source code to run before the repl input is run + null # replace with source code to run before the repl input is run }] env_change: { PWD: [{|before, after| - $nothing # replace with source code to run if the PWD environment is different since the last repl input + null # replace with source code to run if the PWD environment is different since the last repl input }] } display_output: { || @@ -320,4 +317,4 @@ $env.config = { ] -} \ No newline at end of file +} diff --git a/home/nushell/env.nu b/home/nushell/env.nu index c193831..1056338 100755 --- a/home/nushell/env.nu +++ b/home/nushell/env.nu @@ -10,7 +10,7 @@ def create_left_prompt [] { def create_right_prompt [] { let time_segment = ([ - (date now | date format '%m/%d/%Y %r') + (date now | format date '%m/%d/%Y %r') ] | str join) $time_segment @@ -39,4 +39,4 @@ $env.NU_LIB_DIRS = [ $env.NU_PLUGIN_DIRS = [ ($nu.config-path | path dirname | path join 'plugins') -] \ No newline at end of file +]