Created
October 3, 2019 11:05
-
-
Save matoken/6fee886657aa2b6e6f0d675cb872e3ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl | |
| use strict; | |
| use warnings; | |
| use Time::HiRes 'sleep'; #1秒未満のsleepを使いたい | |
| my $PFETCH = 'pfetch'; | |
| my @LIST=('alpine','android','arch','arco','artix','centos','debian','dragonfly','elementary','fedora','freebsd','gentoo','guixsd','haiku','hyperbola','lite','linux','macos','mageia','manjaro','mint','minix','mx','netbsd','nixos','openbsd','suse','parabola','pop!_os','pureos','slackware','sunos','ubuntu','void'); | |
| print "start\n"; | |
| foreach my $dist ( sort @LIST ){ | |
| my $pfetch = `clear`; | |
| $pfetch .= "$dist\n"; | |
| $pfetch .= `PF_INFO=ascii PF_ASCII=$dist $PFETCH`; | |
| print $pfetch; | |
| sleep(0.5); | |
| } | |
| `PF_INFO=ascii pfetch > /dev/null`; #時間調整 | |
| print "end"; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment