oglc/launch

13 lines
204 B
Bash
Executable File

#!/usr/bin/env bash
executable="$1"
prime="prime-run"
if command -v $prime &> /dev/null
then
echo "launching $executable with nvidia prime offloading"
$prime $executable
else
$executable
fi