1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-12-28 15:57:19 +00:00
dotfiles/fish/functions/viewrecord.fish

17 lines
332 B
Fish

function viewrecord
if test $argv
set num $argv
else
listrecords
echo Input the number of the desired recording:
set num (read)
end
if test $KITTY_PID
kitty @ launch --type=tab --hold zstdcat $recfiles[$num]
else
clear
zstdcat $recfiles[$num]
end
end