diff options
author | Mike Crute <crutem@amazon.com> | 2015-04-24 22:00:12 -0700 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2015-04-24 22:00:12 -0700 |
commit | 871a6fde54924ec1303e5658087ee7f293803094 (patch) | |
tree | 089636b06bcf3254efbfc9acf78936d575a12ab8 /.bash_completion.d | |
parent | f7c821169f093e8b29362dfaf475d6bba09f3b96 (diff) | |
download | dotfiles-871a6fde54924ec1303e5658087ee7f293803094.tar.bz2 dotfiles-871a6fde54924ec1303e5658087ee7f293803094.tar.xz dotfiles-871a6fde54924ec1303e5658087ee7f293803094.zip |
Sync up
Diffstat (limited to '.bash_completion.d')
-rw-r--r-- | .bash_completion.d/projector-sh.bash | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.bash_completion.d/projector-sh.bash b/.bash_completion.d/projector-sh.bash new file mode 100644 index 0000000..b25985e --- /dev/null +++ b/.bash_completion.d/projector-sh.bash | |||
@@ -0,0 +1,12 @@ | |||
1 | #!bash | ||
2 | |||
3 | if [[ -x ~/bin/projector.sh ]]; then | ||
4 | function projector_complete | ||
5 | { | ||
6 | word=${COMP_WORDS[COMP_CWORD]} | ||
7 | allwords="$(~/bin/projector.sh --targets)" | ||
8 | COMPREPLY=( $(compgen -W "$allwords" $word) ) | ||
9 | } | ||
10 | |||
11 | complete -F projector_complete projector.sh | ||
12 | fi | ||