#!/bin/bash
cat <<EOF
Will run:
sudo port uninstall inactive      # remove the inactive ports.
sudo port clean --all uninstalled # remove the non-installed distfiles
EOF
read -p "Are you ready? (y/n)" rep
case "$rep" in
y)
    sudo port uninstall inactive         # remove the inactive ports.
    sudo port clean --all -f uninstalled # remove the non-installed distfiles
    ;;
*)
    printf "Aborted\n"
esac
ViewGit