Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add bash completion script #55

wants to merge 2 commits into from

Conversation

qrpnxz
Copy link

@qrpnxz qrpnxz commented Nov 15, 2021

No description provided.

legionus added a commit to legionus/abduco that referenced this pull request Dec 2, 2021
esac
}

command -F _abduco abduco

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
command -F _abduco abduco
complete -F _abduco abduco

' -- $2))
;;
*) # Session
local sessions=$(abduco | tail -n+2 | cut -f 3)

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:

Suggested change
local sessions=$(abduco | tail -n+2 | cut -f 3)
local sessions=$(abduco | tail -n+2 | awk '{print $NF}')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants