Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
gayterm/install.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
48 lines (39 sloc)
1.16 KB
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
#!/bin/bash | |
echo "[+] Installing lolcat-c via snap" | |
sudo snap install lolcat-c | |
echo "[+] Installing patched sl binary" | |
wget https://raw.teamhydra.io/Sticks/gayterm/master/sl | |
GET_RESULT=$? | |
# If get fails, back out | |
if [ "$GET_RESULT" -ne 0 ]; then | |
echo "[-] Failed to download sl binary! Exiting..." | |
exit 1 | |
fi | |
chmod +x sl | |
sudo mv sl /usr/games/sl | |
echo "[+] Retriving .bash_prompt" | |
wget https://raw.teamhydra.io/Sticks/gayterm/master/.bash_prompt | |
GET_RESULT=$? | |
# If get fails, back out | |
if [ "$GET_RESULT" -ne 0 ]; then | |
echo "[-] Failed to download .bash_prompt! Exiting..." | |
exit 1 | |
fi | |
mv .bash_prompt ~/.bash_prompt | |
echo "[+] Retriving append file for .bashrc" | |
wget https://raw.teamhydra.io/Sticks/gayterm/master/bashrc_append.txt | |
GET_RESULT=$? | |
# If get fails, back out | |
if [ "$GET_RESULT" -ne 0 ]; then | |
echo "[-] Failed to download bashrc_append.txt! Exiting..." | |
exit 1 | |
fi | |
# Append to .bashrc (create if it doesn't exist) | |
if [ -f ~/.bashrc ]; then | |
cat bashrc_append.txt >> ~/.bashrc | |
else | |
echo "[+] .bashrc not found, creating..." | |
mv bashrc_append.txt ~/.bashrc | |
fi | |
rm bashrc_append.txt | |
echo "[+] Done! Restart your terminal to see the changes." |