oglc/launch

13 lines
204 B
Plaintext
Raw Normal View History

2021-07-31 19:59:41 +02:00
#!/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