How should I set the Vulkan SDK environment variables?
<p>The <a href="https://vulkan.lunarg.com/app/doc/latest/linux/getting_started.html" rel="nofollow noreferrer">Linux Getting Started Guide for the Vulkan SDK</a> gives instructions for setting up the runtime environment to allow applications to see the local Vulkan SDK installation:</p>
<blockquote>
<p>Set up these variables in your environment after you have set your VULKAN_SDK variable:</p>
<pre><code>$ export PATH=$PATH:$VULKAN_SDK/bin
$ export LD_LIBRARY_PATH=$VULKAN_SDK/lib
$ export VK_LAYER_PATH=$VULKAN_SDK/etc/explicit_layer.d
</code></pre>
</blockquote>
<p>What am I supposed to do with these commands? Currently I just put them at the end of my <code>~/.bashrc</code> file:</p>
<pre><code>$ tail -4 ~/.bashrc
VULKAN_SDK=~/vulkan/VulkanSDK/1.0.13.0/x86_64
export PATH=$PATH:$VULKAN_SDK/bin
export LD_LIBRARY_PATH=$VULKAN_SDK/lib
export VK_LAYER_PATH=$VULKAN_SDK/etc/explicit_layer.d
</code></pre>
<p>This has seemed to work so far, but doesn't this only set the variables in Bash? What if I'm using a different shell or an IDE?</p>
<p>Is this the way I should set the Vulkan SDK environment variables, or is there a better way?</p>