Turn Bash Into A Game Of Chance With $RANDOM

7 Просмотры
Издатель
This short video demonstrates how you can make the terminal a bit more exciting by introducing a bit of randomness into your commands.

THE COMMANDS:
[ $[$RANDOM % 10] = 0 ] && command1 || command2
[ $[$RANDOM % 10] = 0 ] && timeout 5 command1 || command2
alias clear='[ $[$RANDOM % 1] = 0 ] && cd /home/dt/vt100 && . $(/bin/ls | grep .vt | shuf -n 1) || clear'

REFERENCED:


► - VT animations
► - Slowcat perl script

WANT TO SUPPORT THE CHANNEL?
???? Patreon:
???? Paypal:
????️ Amazon:
???? Teespring:

SOCIAL PLATFORMS:
????️ Mastodon: @distrotube
???? IRC: irc://freenode #distrotube
???? Reddit:
????️ LBRY: $/invite/@DistroTube:2

DT ON THE WEB:
????️ Website:
????️ Gopherhole:
???? GitLab:

FREE AND OPEN SOURCE SOFTWARE THAT I USE:
???? Brave Browser -
????️ Open Broadcaster Software:
???? Kdenlive:
???? GIMP:
???? Audacity:
???? VirtualBox:

Your support is very much appreciated. Thanks, guys!
Категория
Поделки своими руками
Комментариев нет.