stormasm / nunotes

notes on nushell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The latest and greatest way to source nu code

source $'($nu.default-config-dir)/config.nu'
source $'([($nu.default-config-dir) config.nu] | path join)'
source ($"($nu.default-config-dir)" + '/config.nu')

Description of the concept which is constants

The key takeaway here is source and use work with constants. Now that some string interpolations are constants, you can do this type of thing. You can also do this type of thing

const f = "foo.nu"
source $f

again, because f is constant.



toolkit.nu

source toolkit.nu
fmt
clippy
test
test stdlib

Latest Stuff

This gets moved out to another location after some time

# Note you have to put the --env after def in order for this to work

def --env changedir [] {
  cd /Users/ma/j/tmp17/nunotes
}

ref



ok

About

notes on nushell

License:MIT License


Languages

Language:Rust 100.0%