add direnv

This commit is contained in:
2025-10-23 22:16:42 +09:00
parent f087fd2bdb
commit 3e5e0c52cd
8 changed files with 106 additions and 79 deletions

8
shell/clangd-direnv.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
if command -v direnv >/dev/null 2>&1; then
direnv exec . clangd "$@"
else
clangd "$@"
fi