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: {
|
||||
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 = {
|
|||
|
||||
]
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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')
|
||||
]
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue