add fish functions

This commit is contained in:
LordMZTE 2021-04-16 18:55:52 +02:00
parent 5ec3db6aed
commit 76729f4294
3 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,4 @@
function extract_audio
ffmpeg -i "$argv[1]" -q:a 0 -map a "$argv[2]"
end

View file

@ -0,0 +1,8 @@
function lights
set lights (huectl light get | sed '/\"id\"/!d; s/.* \"//; s/\".*//')
for l in $lights
huectl light set $l $argv
end
end

View file

@ -0,0 +1,5 @@
function newtmp
set dir /tmp/(uuidgen)
mkdircd $dir
end