1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 22:57:46 +00:00

use typos for corrections (#833)

I used [typos](https://github.com/crate-ci/typos/).
I manually checked all the corrections and they seem safe to me.
There are still some left, but those in this PR are good
This commit is contained in:
Maxim Uvarov 2024-05-08 19:47:54 +08:00 committed by GitHub
parent a0aa600153
commit afde2592a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 102 additions and 90 deletions

View file

@ -1,6 +1,6 @@
# A bash like quick string manipulation script
# the script works by creating a list from brace contents, seperated by a brace.
# the script works by creating a list from brace contents, separated by a brace.
# Expand the given string into a list on braces like bashes brace expansion
export def main [
@ -38,8 +38,8 @@ export def help [] {
$"(ansi green)Examples(ansi reset):"
$" > (ansi light_green)expand (ansi green)a/{b,c}/d(ansi reset)"
$"╭───┬───────╮\n│ 0 │ a/b/d │\n│ 1 │ a/c/d │\n╰───┴───────╯"
$" > (ansi light_green)expand (ansi green)\"my {beautifull,ugly} duckling\"(ansi reset)"
$"╭───┬────────────────────────╮\n│ 0 │ my beautifull duckling │\n│ 1 │ my ugly duckling │\n╰───┴────────────────────────╯"
$" > (ansi light_green)expand (ansi green)\"my {beautiful,ugly} duckling\"(ansi reset)"
$"╭───┬────────────────────────╮\n│ 0 │ my beautiful duckling │\n│ 1 │ my ugly duckling │\n╰───┴────────────────────────╯"
$" > (ansi light_green)expand (ansi green).config/nushell/config.nu{,on}(ansi reset)"
$"╭───┬─────────────────────────────╮\n│ 0 │ .config/nushell/config.nu │\n│ 1 │ .config/nushell/config.nuon │\n╰───┴─────────────────────────────╯"
$" > (ansi light_green)expand (ansi green)a/{b,c}/{d,e,f,g} (ansi reset)(ansi purple)|(ansi reset)(ansi light_green) each(ansi reset) (ansi light_green){ |d| (ansi reset)(ansi light_green) mkdir(ansi reset) (ansi purple)$d (ansi reset)(ansi light_green)}(ansi reset);(ansi light_green)tree(ansi reset)"