I have a very simple script that benchmark apps using the Vulkan API. it takes an argument from $1
:
benchmark-app:
#!/usr/bin/env bash
VK_INSTANCE_LAYERS=VK_LAYER_MESA_overlay VK_LAYER_MESA_OVERLAY_CONFIG=position=top-right $1
To use it, I run benchmark-app example-game
. It will take the argument and execute as expected, but when using tab completion it looks in ./
not $PATH
.