repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

update shell compatibility

1d977122fb44f7728a8a6126c125c668535e536b

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

- support zed and zeditor difftool names
- use current Nushell string case commands

Changed files (6)

+10 / −9 text lines

Diff layout

git/gitconfig

Modified

+2 / −1 text lines

9797 prompt = false
9999[difftool "zed"]
100 cmd = "zeditor --wait --diff \"$LOCAL\" \"$REMOTE\""
100 # Binary is named 'zeditor' on some distros, 'zed' elsewhere.
101 cmd = "\"$(command -v zeditor || command -v zed)\" --wait --diff \"$LOCAL\" \"$REMOTE\""
102103[difftool "difftastic"]
103104 cmd = "difft \"$LOCAL\" \"$REMOTE\""

nushell/env.nu

Modified

+1 / −1 text lines

113113if not (which mise | is-empty) {
114114 mkdir ($nu.vendor-autoload-dirs | last)
115 ^mise activate nu | str replace --all 'str upcase' 'str uppercase' | save --force ($nu.vendor-autoload-dirs | last | path join 'mise.nu')
115 ^mise activate nu | save --force ($nu.vendor-autoload-dirs | last | path join 'mise.nu')
118118if not (which niri | is-empty) {

nushell/modules/git.nu

Modified

+4 / −4 text lines

351351def add-candidate-matches [candidate: record, query: string] {
352 let q = ($query | str lowercase)
353 let branch = ($candidate.branch | str lowercase | str contains $q)
354 let base = ($candidate.base | str lowercase | str contains $q)
355 let display = ($candidate.display | str lowercase | str contains $q)
352 let q = ($query | str downcase)
353 let branch = ($candidate.branch | str downcase | str contains $q)
354 let base = ($candidate.base | str downcase | str contains $q)
355 let display = ($candidate.display | str downcase | str contains $q)
356356 $branch or $base or $display

nushell/modules/minimax.nu

Modified

+1 / −1 text lines

122122# ── Completions ─────────────────────────────────────────────────────────────────
124124def parse-voice-gender [voice_name: string] {
125 let name_lower = ($voice_name | str lowercase)
125 let name_lower = ($voice_name | str downcase)
126126 let female_markers = ["girl", "lady", "woman", "queen", "sister", "mother", "wife", "aunt", "narrator", "host", "hostess", "antie", "belle", "maiden"]
127127 let male_markers = ["man", "boy", "father", "husband", "king", "brother", "uncle", "bloke", "guy", "dude", "fellow", "lad", "gentleman"]
128128 if ($female_markers | any { |m| $name_lower | str contains $m }) {

nushell/modules/syncthing.nu

Modified

+1 / −1 text lines

99 each { |conflict|
1010 merge ( to_original $conflict ) $conflict
1111 let input = ( input $"Merge successful? \((ansi pb)Y(ansi reset)/n\) \n" )
12 let sanitize = ( $input | str trim | str lowercase | str substring 0..1 )
12 let sanitize = ( $input | str trim | str downcase | str substring 0..1 )
1313 if ($sanitize | is-empty) or $sanitize == 'y' {
1414 rm --verbose --interactive $conflict
1515 } else {

nushell/modules/zai.nu

Modified

+1 / −1 text lines

5555 let d = (ansi d)
5656 let e = (ansi rst)
58 print $"($c)($plan | str uppercase) Plan($e)"
58 print $"($c)($plan | str upcase) Plan($e)"
6060 let tokens = $limits | where kind == TOKENS_LIMIT
6161 if $tokens != [] { print ""; print $"($c)Tokens($e) LLM quota"; $tokens | each {|r| show_limit $r $d null } }