aboutsummaryrefslogtreecommitdiff
path: root/survive_autocomplete.sh
diff options
context:
space:
mode:
authorJustin Berger <jdavidberger@gmail.com>2018-06-27 04:22:22 +0000
committerJustin Berger <jdavidberger@gmail.com>2018-06-27 04:22:22 +0000
commitcf36bd58b8c9d1c23ccfe1a52beafe376ba02e6b (patch)
treebae72f9ebe6937dbbabb7beec3115028a15743b0 /survive_autocomplete.sh
parent902bbde43fb6e000140da0da56c05f2d4af1df5f (diff)
parente68b69a9a14aeb70988c52666e60502fe6f049ab (diff)
downloadlibsurvive-cf36bd58b8c9d1c23ccfe1a52beafe376ba02e6b.tar.gz
libsurvive-cf36bd58b8c9d1c23ccfe1a52beafe376ba02e6b.tar.bz2
Merge remote-tracking branch 'origin/master' into fix_wired_tracker
Diffstat (limited to 'survive_autocomplete.sh')
-rwxr-xr-xsurvive_autocomplete.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/survive_autocomplete.sh b/survive_autocomplete.sh
new file mode 100755
index 0000000..560eb33
--- /dev/null
+++ b/survive_autocomplete.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+#place this script in /etc/bash_completion.d/ for general use.
+_script()
+{
+ _script_commands=$(./test -m $1 $2 $3)
+ local cur prev
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ COMPREPLY=( $(compgen -W "${_script_commands}" -- ${cur}) )
+ return 0
+}
+
+complete -o nospace -F _script ./calibrate
+complete -o nospace -F _script ./simple_pose_test
+complete -o nospace -F _script ./data_recorder
+