mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-26 10:59:53 +08:00
Experimental autocompletion setup scripts (#378)
* Working completion scripts * generate.py => install.py * Uninstall for completions, docs/README updates * Tune emojis, improve concurrency for completion install * wip * Cleanup * Permissions, shebang checks
This commit is contained in:
1 parent
61022f7dbe
commit
86a805c88c
17 files changed
+386
-32
No files matched your search
@@ -0,0 +1,17 @@
|
||||
# Nerfactory completions for bash.
|
||||
#
|
||||
# This should generally be installed automatically by `configure.py`.
|
||||
|
||||
completions_dir="$(dirname "$BASH_SOURCE")"/bash
|
||||
|
||||
if [ ! -d "${completions_dir}" ]; then
|
||||
echo "$0: Completions are missing!"
|
||||
echo "Please generate them with nerfactory/scripts/completions/generate.py!"
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Source each completion script.
|
||||
for completion_path in ${completions_dir}/*
|
||||
do
|
||||
source $completion_path
|
||||
done
|
||||
Reference in new issue
Block a user