From 13d28052056940f4820ce72dd9e8146827c2fc7f Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Fri, 2 Oct 2020 17:34:21 +0300 Subject: [PATCH] [scripts] add the prime-run script along with a completion function --- scripts/prime-run | 2 ++ zsh/completions/_prime-run | 4 ++++ 2 files changed, 6 insertions(+) create mode 100755 scripts/prime-run create mode 100644 zsh/completions/_prime-run diff --git a/scripts/prime-run b/scripts/prime-run new file mode 100755 index 0000000..cfd112a --- /dev/null +++ b/scripts/prime-run @@ -0,0 +1,2 @@ +#!/bin/sh +__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia exec "$@" diff --git a/zsh/completions/_prime-run b/zsh/completions/_prime-run new file mode 100644 index 0000000..6347353 --- /dev/null +++ b/zsh/completions/_prime-run @@ -0,0 +1,4 @@ +#compdef prime-run + +_arguments \ + '*:: : _normal -p $service'