Check Installed Software

Check Installed Software


        check_command() {
            command -v "$1" >/dev/null 2>&1
        }

        check_command "code" && echo "Visual Studio Code is installed" || echo "Visual Studio Code is not installed"

        check_command "brew" && echo "Homebrew is installed" || echo "Homebrew is not installed"

        check_command "python" && echo "Python is installed" || echo "Python is not installed"

        check_command "jupyter" && echo "Jupyter is installed" || echo "Jupyter is not installed"

        check_command "ruby" && echo "Ruby is installed" || echo "Ruby is not installed"

        check_command "jekyll" && echo "Jekyll gem is installed" || echo "Jekyll gem is not installed"

        ruby -v

        python --version

        jupyter --version