Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/clone-all/clone-all.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 3 additions & 12 deletions modules/formats/from-cpuinfo.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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 ' ' }
}
}
4 changes: 2 additions & 2 deletions modules/formats/from-dmidecode.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion modules/fuzzy/fuzzy_command_search.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion modules/prompt/full-line.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
[[]]
Expand Down
2 changes: 1 addition & 1 deletion sourced/AutoASPM/auto_aspm.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading