Created
November 3, 2013 00:32
-
-
Save baweaver/7285105 to your computer and use it in GitHub Desktop.
I get really annoyed at having to retype this exact same thing to install every tar.gz package, so I put it in a function
This file contains 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
function pk-install { | |
url="$1" | |
wget $url | |
file_name=`echo $url | sed 's/^.*\/\(.*\)\.tar\.gz$/\1/'` | |
tar -zxvf "$file_name.tar.gz" | |
cd $file_name | |
make && make install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment