mirror of
https://github.com/Phantop/dotfiles
synced 2024-12-26 15:06:50 +00:00
17 lines
332 B
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
|