4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 02:24:38 +08:00
nerfstudio/scripts/completions/setup.bash
2022-09-29 23:42:15 -07:00

18 lines
442 B
Bash

# nerfstudio 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 nerfstudio/scripts/completions/generate.py!"
return 1
fi
# Source each completion script.
for completion_path in ${completions_dir}/*
do
source $completion_path
done