mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-11 02:24:38 +08:00
* 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
18 lines
442 B
Bash
18 lines
442 B
Bash
# 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
|