Last active
September 8, 2023 15:15
-
-
Save scarolan/0d6fc152edbbf4cd7fe07e2d6e8884a1 to your computer and use it in GitHub Desktop.
Bash script to install ponysay on Ubuntu
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 ponysay for user $(id)" | |
cd $HOME | |
[[ -d $HOME/ponysay ]] && rm -rf $HOME/ponysay | |
sudo apt -y update && sudo apt -y install texinfo git cowsay fortune-mod | |
git clone https://github.com/erkin/ponysay && cd ponysay | |
python3 ./setup.py install --private --freedom=partial | |
$HOME/.local/bin/ponythink -f rarity "Ponysay was successfully installed at $HOME/.local/bin/ponysay" | |
echo "Run this command to add ponysay to your PATH:" | |
echo "export PATH=\$PATH:\$HOME/.local/bin" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment