-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.sh
24 lines (21 loc) · 964 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
curl -sS -o ~/.bashrc-pyro.sh https://raw.githubusercontent.com/FlipperPA/pyromania/main/pyro.sh
if grep -q "# Start Pyromania" ~/.bashrc; then
echo "It appears Pyromania is already installed. Remove it from ~/.bashrc"
echo "for a complete reinstall. Updating the Pyromania script to the latest"
echo "verison."
else
echo "" >> ~/.bashrc
echo "# Start Pyromania upon login for venv management." >> ~/.bashrc
echo "source ~/.bashrc-pyro.sh" >> ~/.bashrc
echo "export VENV_PYTHON=`which python3`" >> ~/.bashrc
echo "# End Pyromania configuration." >> ~/.bashrc
if ! which python3asdf ; then
echo "WARNING!"
echo "'python3' could not be found in the system path. You should edit ~/.bashrc"
echo "and set 'VENV_PYTHON' to the path of your preferred Python 3 binary."
echo ""
fi
echo "Pyromania has been installed! Type 'pyro --help' for help getting started."
source ~/.bashrc
fi