summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/bash-completion3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/bash-completion b/misc/bash-completion
index 719e7a8..ecb6c54 100644
--- a/misc/bash-completion
+++ b/misc/bash-completion
@@ -28,7 +28,8 @@ _ninja_target() {
# filter out all non relevant arguments but keep C for dirs
while getopts C:f:j:l:k:nvd:t: opt $line; do
case $opt in
- C) dir="$OPTARG" ;;
+ # eval for tilde expansion
+ C) eval dir="$OPTARG" ;;
esac
done;
targets_command="eval ninja -C \"${dir}\" -t targets all"