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

picongpu-completion.bash fails in screen session #4954

Open
PrometheusPi opened this issue Jun 24, 2024 · 4 comments
Open

picongpu-completion.bash fails in screen session #4954

PrometheusPi opened this issue Jun 24, 2024 · 4 comments
Assignees
Labels
component: tools scripts, python libs and CMake

Comments

@PrometheusPi
Copy link
Member

PrometheusPi commented Jun 24, 2024

When using pic-create auto-completion in a screen session, the auto-completion fails with a:

bash: _init_completion: command not found

error. Outside the screen session, the same workflow works.

@PrometheusPi PrometheusPi added the component: tools scripts, python libs and CMake label Jun 24, 2024
@PrometheusPi PrometheusPi added this to the 0.8.0 / Next stable milestone Jun 24, 2024
@finnolec
Copy link
Contributor

For me it works...

@PrometheusPi
Copy link
Member Author

offline investigation with @finnolec:
Auto-completion of flags provided by pic-build still works for me.

@PrometheusPi
Copy link
Member Author

found by @finnolec:
When sourcing the system bash_completion via:

source /usr/share/bash-completion/bash_completion

everything works as expected.

@finnolec
Copy link
Contributor

finnolec commented Jun 24, 2024

This here

if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
elif [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
fi

should work more reliable in case the bash_completion file is in a different directory. The /usr/share/bash-completion/bash_completion path should work on hemera :) You can add this part to your .bashrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tools scripts, python libs and CMake
Projects
None yet
Development

No branches or pull requests

3 participants