From 591d17ddbaaf0ed3bf0157a702206cbe9fd4017e Mon Sep 17 00:00:00 2001 From: Xevion Date: Thu, 25 Dec 2025 17:17:40 -0600 Subject: [PATCH] feat: add CUDA 11.8 path configuration to Fish shell --- home/.chezmoitemplates/scripts/commonrc.fish.tmpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/.chezmoitemplates/scripts/commonrc.fish.tmpl b/home/.chezmoitemplates/scripts/commonrc.fish.tmpl index 13cf72c..9d3baf9 100644 --- a/home/.chezmoitemplates/scripts/commonrc.fish.tmpl +++ b/home/.chezmoitemplates/scripts/commonrc.fish.tmpl @@ -85,6 +85,12 @@ if test -d $HOME/.dotnet set -a paths_to_add $DOTNET_ROOT $DOTNET_ROOT/tools end +# CUDA +if test -d /usr/local/cuda-11.8 + set -a paths_to_add /usr/local/cuda-11.8/bin + test -d /usr/local/cuda-11.8/lib64 && set -gx LD_LIBRARY_PATH /usr/local/cuda-11.8/lib64 $LD_LIBRARY_PATH +end + # Batch add all collected paths (single PATH reconstruction instead of 17+ calls) test -n "$paths_to_add[1]" && fish_add_path $paths_to_add