rm * exit clear ls exit clear df /run df /run | detect columns df /run | detect columns | get "Use%" (df /run | detect columns | get "Use%").0 echo "gaming jacket" | kak exit clear try {<\n>print (1/0)<\n>} try {<\n>print (1/0)<\n>} catch {<\n>"You can't divide by zero!"<\n>} clear let first_index = "Hello World!" | str index-of 'o' let substring = "Hello World!" | str substring 4..8 let split_string = "Hello, Oh So Beautiful World!" | split row " " print {first_index} print $first_index print $substring print split_string print $split_string let version_info = "Nushell 0.80" | parse "{shell} {version}" echo $version_info {shell} shell echo "{shell}" parse parse --help clear let val1 = 42 $val = 100 $val1 = 100 let $val1 = 100 print $val1 mut val2 = 42 $val2 += 26 $val $val2 clearr clear ktsctl sync nu clear ktsctl query -a ktsctl query -a | detect columns ktsctl query -a | detect columns | skip 1 ktsctl query -a | detect columns | skip 1 | get Language $env.USER clear help help do c clear c clear do { echo hii} let text = "I am enclosed" let hello = {|| echo $text} do $hello let hello = {echo $text} do $hello clear do -i { foobargaming } do -c { nu --commands 'exit 1' } | myscarycommand do { nu --commands 'exit 1' } | myscarycommand do --capture-errors { nu --commands 'exit 1' } | myscarycommand clear do {|x:int| 100 + $x } 77 let hello = {|s:str| printf 'Hello, %s!' $s } let hello = {|s:string| printf 'Hello, %s!' $s } do $hello friend commandline (history | each ) commandline (history | each { |it| $it.command } | uniq | reverse | fzf --height 20 ) history | each { |it| $it.command } | uniq | reverse | fzf --height 20 clear $env.config.keybindings ++= [{<\n> name: fuzzy_history<\n> modifier: control<\n> keycode: char_h<\n> mode: [emacs, vi_normal, vi_insert]<\n> event: {<\n> send: executehostcommand<\n> cmd: "commandline (history | each { |it| $it.command } | uniq | reverse | fzf --height 20)"<\n> }<\n>}] ls cd dev/zona clear ls ls --tree clear ls ls | sort-by size | reverse ls | where size > 10kb ls | where size > 1kb clear ps ^ps aux clear ps ps | where status == Running ps | describe http get https://api.github.com/repos/nushell/nushell/contributors let form = (http get https://api.github.com/repos/nushell/nushell/contributors) $form $form | select login contributions $env.config.buffer_editor = kak $env.config.buffer_editor = "kak" clear config nu --doc | nu-highlight | less -R