nushell: update syntax
This commit is contained in:
parent
307bbead60
commit
2b3df7e17b
2 changed files with 6 additions and 9 deletions
|
@ -38,9 +38,6 @@ $env.config = {
|
||||||
rm: {
|
rm: {
|
||||||
always_trash: false # always act as if -t was given. Can be overridden with -p
|
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: {
|
table: {
|
||||||
mode: rounded # basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other
|
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
|
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.
|
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: {
|
hooks: {
|
||||||
pre_prompt: [{ ||
|
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: [{ ||
|
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: {
|
env_change: {
|
||||||
PWD: [{|before, after|
|
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: { ||
|
display_output: { ||
|
||||||
|
|
|
@ -10,7 +10,7 @@ def create_left_prompt [] {
|
||||||
|
|
||||||
def create_right_prompt [] {
|
def create_right_prompt [] {
|
||||||
let time_segment = ([
|
let time_segment = ([
|
||||||
(date now | date format '%m/%d/%Y %r')
|
(date now | format date '%m/%d/%Y %r')
|
||||||
] | str join)
|
] | str join)
|
||||||
|
|
||||||
$time_segment
|
$time_segment
|
||||||
|
|
Loading…
Reference in a new issue