Last active
December 16, 2015 01:19
-
-
Save SomeKittens/5354737 to your computer and use it in GitHub Desktop.
Ever wanted to yell at your terminal? Now you can!
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 | |
#Needed to provide alias expansion (so we can use those aliases after the script's finished) | |
shopt -s expand_aliases | |
while read x; | |
do | |
a=`echo $x | tr '[:lower:]' '[:upper:]'`; | |
#Added because the script was picking up empty lines | |
if [ "$a" != '' ] | |
then | |
alias $a=$x; | |
fi | |
done < <(compgen -c) |
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 | |
shopt -s expand_aliases | |
while read x; | |
do | |
a=`echo $x | tr '[:lower:]' '[:upper:]'`; | |
if [ "$a" != '' ] | |
then | |
unalias $a; | |
fi | |
done < <(compgen -c) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment