add Ellie to the standard library (#10686)

the other day i heard the story of our friend Ellie the elephant and i
couldn't resist adding it as a command to the standard library 😊
This commit is contained in:
Antoine Stevan 2023-10-11 18:36:16 +02:00 committed by GitHub
parent 814a5caf9a
commit 4be7004289
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -290,6 +290,18 @@ Startup Time: ($nu.startup-time)
"
}
# the cute and friendly mascot of Nushell :)
export def ellie [] {
let ellie = [
" __ ,",
" .--()°'.'",
"'|, . ,'",
" !_-(_\\",
]
$ellie | str join "\n" | $"(ansi green)($in)(ansi reset)"
}
# Return the current working directory
export def pwd [] {
$env.PWD