mirror of
https://github.com/bvanroll/older-dotfiles.git
synced 2025-08-29 12:02:49 +00:00
kdenk dak het gedaan heb
This commit is contained in:
17
fish/functions/audition.fish
Normal file
17
fish/functions/audition.fish
Normal file
@@ -0,0 +1,17 @@
|
||||
function audition
|
||||
read -n 1 -p 'echo "this program will audition every file in this folder via aplay and ask you if its usable or not, ctrl c now to exit"'; mkdir usable; mkdir unusable; for f in ./*
|
||||
aplay $f
|
||||
set y "r"
|
||||
while [ $y = "r" ]
|
||||
read -n 1 -P 'echo "usable or no? (y,n,r)"' y
|
||||
if [ $y = "r" ]
|
||||
aplay $f
|
||||
end
|
||||
end
|
||||
if [ $y = "y" ]
|
||||
cp $f "usable/$f"
|
||||
else
|
||||
cp $f "unusable/$f"
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user