Add bash completion for perf and strace
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 27 Jan 2017 23:55:21 +0000 (18:55 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 9 Feb 2017 17:31:08 +0000 (12:31 -0500)
It's a simple completion for finding programs in your path.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/kfs/.bashrc [new file with mode: 0644]

diff --git a/kern/kfs/.bashrc b/kern/kfs/.bashrc
new file mode 100644 (file)
index 0000000..c98d05f
--- /dev/null
@@ -0,0 +1,7 @@
+_spawner_compl() {
+       local cur=${COMP_WORDS[COMP_CWORD]}
+       COMPREPLY=( $(compgen -c ${cur}) )
+}
+
+complete -o default -o nospace -F _spawner_compl strace
+complete -o default -o nospace -F _spawner_compl perf