nu
This commit is contained in:
parent
8864ca2375
commit
352df7fc81
1 changed files with 18 additions and 5 deletions
|
|
@ -3,19 +3,26 @@ def "config stuff" [] {
|
|||
}
|
||||
|
||||
def fixme [] {
|
||||
rg FIXME --json
|
||||
let items = rg "FIXME|TODO" --json
|
||||
| lines
|
||||
| each {from json}
|
||||
| where type == "match"
|
||||
| get data
|
||||
| flatten
|
||||
| each {$"($in.text):($in.line_number)"}
|
||||
| hx ...$in
|
||||
| reject absolute_offset submatches
|
||||
| each {
|
||||
mut row = $in
|
||||
$row.lines_text = ($row.lines_text | str trim)
|
||||
$row
|
||||
}
|
||||
| sort
|
||||
let sel = $items.lines_text | input list -fi
|
||||
hx ($items | get $sel | $"($in.text):($in.line_number)")
|
||||
}
|
||||
|
||||
source ~/.zoxide.nu
|
||||
def --env z [path: string = "~"] {
|
||||
zo $path
|
||||
def --wrapped --env z [...rest] {
|
||||
zo ...$rest
|
||||
l
|
||||
}
|
||||
|
||||
|
|
@ -56,3 +63,9 @@ def louder [] {
|
|||
"NOlaptop" => {sudo ectool fanduty 100}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
def asciicam [] {
|
||||
$env.DISPLAY = null
|
||||
mpv -vo caca av://v4l2:/dev/video0 --demuxer-lavf-o=input_format=mjpeg --profile=low-latency e>| /dev/null
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue