18 lines
519 B
Bash
Executable File
18 lines
519 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Installing YouTube CLI system-wide..."
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
# Install the package system-wide
|
|
pip3 install --user --break-system-packages -e .
|
|
|
|
# Add Python user bin to PATH if not already present
|
|
if ! grep -q "Library/Python" ~/.zshrc 2>/dev/null; then
|
|
echo 'export PATH="$HOME/Library/Python/3.14/bin:$PATH"' >> ~/.zshrc
|
|
echo "Added Python user bin to ~/.zshrc"
|
|
fi
|
|
|
|
echo "YouTube CLI installed successfully!"
|
|
echo "Run 'source ~/.zshrc' or restart your terminal to use youtube-cli" |