mirror of https://github.com/martanne/abduco
Fix bash completion on multiple sessions
This commit is contained in:
parent
d6e2f66482
commit
5ad9cc6af3
|
|
@ -16,7 +16,7 @@ function _abduco() {
|
|||
;;
|
||||
*) # Session
|
||||
local sessions=$(abduco | tail -n+2 | cut -f 3)
|
||||
COMPREPLY=($(compgen -W $sessions -- $2))
|
||||
COMPREPLY=($(compgen -W "$sessions" -- $2))
|
||||
[ -n "$2" ] && compopt -o plusdirs
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Reference in New Issue