Commit c59c8118 authored by Lennart Kolmodin's avatar Lennart Kolmodin
Browse files

Add new-build to bash completion

The command 'new-build' won't be completed, but if you type it out
you'll get completions from that point.
parent 019ef6f6
......@@ -25,11 +25,12 @@ _cabal_targets()
# targets of according type.
local comp
for comp in "$@"; do
[ "$comp" == build ] && _cabal_list "executable|test-suite|benchmark" && break
[ "$comp" == repl ] && _cabal_list "executable|test-suite|benchmark" && break
[ "$comp" == run ] && _cabal_list "executable" && break
[ "$comp" == test ] && _cabal_list "test-suite" && break
[ "$comp" == bench ] && _cabal_list "benchmark" && break
[ "$comp" == new-build ] && _cabal_list "executable|test-suite|benchmark" && break
[ "$comp" == build ] && _cabal_list "executable|test-suite|benchmark" && break
[ "$comp" == repl ] && _cabal_list "executable|test-suite|benchmark" && break
[ "$comp" == run ] && _cabal_list "executable" && break
[ "$comp" == test ] && _cabal_list "test-suite" && break
[ "$comp" == bench ] && _cabal_list "benchmark" && break
done
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment