nushell: update syntax

This commit is contained in:
notohh 2023-10-29 05:30:35 -04:00
parent 307bbead60
commit 2b3df7e17b
Signed by: notohh
GPG key ID: BD47506D475EE86D
2 changed files with 6 additions and 9 deletions

View file

@ -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 = {
]
}
}

View file

@ -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')
]
]