diff --git a/modules/clone-all/clone-all.nu b/modules/clone-all/clone-all.nu index 77b7c2871..a69aa6835 100644 --- a/modules/clone-all/clone-all.nu +++ b/modules/clone-all/clone-all.nu @@ -5,8 +5,8 @@ # returns "myspecial_repo" # Grabs the repo name of a github (ORG/repo) string -def "grab repo name" [ghrepo: string]: [string -> string] { - $ghrepo | split column "/" | get column2 | last +def "grab repo name" [ghrepo: string]: [nothing -> string] { + $ghrepo | split column "/" | get column1 | last } # Generic fn to clone all repos of one organization into a specific folder diff --git a/modules/formats/from-cpuinfo.nu b/modules/formats/from-cpuinfo.nu index 0de8dc01b..9cf77f034 100644 --- a/modules/formats/from-cpuinfo.nu +++ b/modules/formats/from-cpuinfo.nu @@ -5,18 +5,9 @@ export def "from cpuinfo" [] { | each { split column ':' | str trim - | update column1 { - get column1 - | str replace -a ' ' '_' - } + | str replace -a ' ' '_' column0 | transpose -r -d - | update flags { - get flags - | split row ' ' - } - | update bugs { - get bugs - | split row ' ' - } + | update flags { split row ' ' } + | update bugs { split row ' ' } } } diff --git a/modules/formats/from-dmidecode.nu b/modules/formats/from-dmidecode.nu index f359bb0ff..9b7ffefd2 100644 --- a/modules/formats/from-dmidecode.nu +++ b/modules/formats/from-dmidecode.nu @@ -21,8 +21,8 @@ export def "from dmidecode" [] { | skip 2 | split column ':' | str trim - | str lowercase column1 - | str replace -a ' ' '_' column1 + | str lowercase column0 + | str replace -a ' ' '_' column0 | transpose -r -d } } else { diff --git a/modules/fuzzy/fuzzy_command_search.nu b/modules/fuzzy/fuzzy_command_search.nu index 6b814c042..49ee53dff 100644 --- a/modules/fuzzy/fuzzy_command_search.nu +++ b/modules/fuzzy/fuzzy_command_search.nu @@ -18,7 +18,7 @@ export def fuzzy-command-search [] { let command = ((help commands | each {|it| let name = ($it.name | str trim | ansi strip) $"($name)(pad-tabs $name $max_indent)($it.description)" - }) | str join (char nl) | fzf | split column (char tab) | get column1.0) + }) | str join (char nl) | fzf | split column (char tab) | get column0.0) if ($command | is-not-empty) { help $command } diff --git a/modules/prompt/full-line.nu b/modules/prompt/full-line.nu index 41b7ff437..bf148a14e 100644 --- a/modules/prompt/full-line.nu +++ b/modules/prompt/full-line.nu @@ -203,7 +203,7 @@ def repo-structured [] { $status | where ($it | str starts-with '1') or ($it | str starts-with '2') | split column ' ' - | get column2 + | get column1 | split column '' staging worktree --collapse-empty } else { [[]] diff --git a/sourced/AutoASPM/auto_aspm.nu b/sourced/AutoASPM/auto_aspm.nu index 68c439973..df2b2699d 100644 --- a/sourced/AutoASPM/auto_aspm.nu +++ b/sourced/AutoASPM/auto_aspm.nu @@ -15,7 +15,7 @@ def get-bytes-for-device [ | skip | compact -e | split column -c ':' - | get column2 + | get column1 | split row ' ' | compact -e | str join