[scripts] add the prime-run script along with a completion function

This commit is contained in:
Dmytro Meleshko 2020-10-02 17:34:21 +03:00
parent bd04f977c4
commit 13d2805205
2 changed files with 6 additions and 0 deletions

2
scripts/prime-run Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia exec "$@"

View file

@ -0,0 +1,4 @@
#compdef prime-run
_arguments \
'*:: : _normal -p $service'