-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add bash completion script #55
base: master
Are you sure you want to change the base?
Conversation
Link: martanne#55 Signed-off-by: Alexey Gladkov <[email protected]>
esac | ||
} | ||
|
||
command -F _abduco abduco |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
command -F _abduco abduco | |
complete -F _abduco abduco |
' -- $2)) | ||
;; | ||
*) # Session | ||
local sessions=$(abduco | tail -n+2 | cut -f 3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The session name is in the third column for the latest release (v0.6
) but on the master
branch it's in the fourth column. awk '{print $NF}'
(=last column) works for both versions:
local sessions=$(abduco | tail -n+2 | cut -f 3) | |
local sessions=$(abduco | tail -n+2 | awk '{print $NF}') |
No description provided.