Last active
August 29, 2015 14:04
-
-
Save nibalizer/4a4fef59216f3f13d884 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
| #!/bin/bash | |
| if [ $1 = '--i-have-a-shit-ton-of-windows' ];then | |
| extra_windows=9 | |
| fi | |
| echo What client are you? | |
| read client | |
| case $client in | |
| 'weechat') | |
| echo HEATHEN!, oh well i will still help you | |
| cmd='/bu ' | |
| ;; | |
| 'irssi') | |
| echo YOU HAVE CHOSEN WISELY | |
| cmd='/win ' | |
| ;; | |
| *) | |
| echo "Yeaaaa, you're on your own" | |
| echo "Goodbye" | |
| exit 1 | |
| ;; | |
| esac | |
| sleep 1 | |
| upper=${extra_windows}99 | |
| for i in {1..upper} | |
| do | |
| echo /alias $i $cmd $i | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment