From d24d98607ff4a2b30519b28c3b70d7bafaadc6e5 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Wed, 9 Jul 2025 16:12:01 -0400 Subject: [PATCH] AutoYADM commit: 2025-07-09 16:12:01 --- .config/nushell/history.txt | 61 +++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/.config/nushell/history.txt b/.config/nushell/history.txt index aadfa5c7..142c38bf 100644 --- a/.config/nushell/history.txt +++ b/.config/nushell/history.txt @@ -10,3 +10,64 @@ 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