AutoYADM commit: 2025-07-09 16:12:01
This commit is contained in:
parent
6cc3ce84bc
commit
d24d98607f
1 changed files with 61 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue