Skip to content

stormasm/nunotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Streaming and cheat-sheet notes on discord

discord

cheat-sheet --output list --input string
cheat-sheet --input list --output table

Building Nushell

cargo test --workspace --exclude nu_plugin_*
toolkit test

Contributor Book

Bare Words

bare words: foo, foo-bar, bar_baz
bare words with spaces:

`foo bar` `hello world`

strings: "foo", 'foo-bar'
bash: /foo\ bar/

bash:

cd Some\ Dir

Nushell:

cd `Some Dir`

A creative hack to allow config reloads

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



Dataset

About

notes on nushell

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages