Commit 8af68cc7 authored by Alexander Dymo's avatar Alexander Dymo

Strip [running] from session list output before completing sessions

parent 80f71a51
......@@ -28,7 +28,7 @@ have kdevelop && _kdevelop()
prev=${COMP_WORDS[COMP_CWORD-1]}
case $prev in
-s)
COMPREPLY=( $( kdevelop --sessions 2>/dev/null | egrep "^{" | sed 's/:.*//' | tr '\n' ' ' ) )
COMPREPLY=( $( kdevelop --sessions 2>/dev/null | egrep "^{" | sed 's/:.*//' | sed 's/\s*\[running\]//' | tr '\n' ' ' ) )
COMPREPLY=( $( compgen -W '${COMPREPLY[@]}' -- $cur ) )
return 0
;;
......
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