Skip to content

Instantly share code, notes, and snippets.

@scarolan
Last active September 8, 2023 15:15
Show Gist options
  • Save scarolan/0d6fc152edbbf4cd7fe07e2d6e8884a1 to your computer and use it in GitHub Desktop.
Save scarolan/0d6fc152edbbf4cd7fe07e2d6e8884a1 to your computer and use it in GitHub Desktop.
Bash script to install ponysay on Ubuntu
#!/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