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

setup.py linux-package --shell-integration="enabled no-rc" is not functional #4434

Closed
ionenwks opened this issue Jan 4, 2022 · 0 comments
Closed
Labels

Comments

@ionenwks
Copy link

ionenwks commented Jan 4, 2022

Describe the bug

Documentation points to using --shell-integration=enabled\ no-rc which I've meant to do given installed the kitty.bash in our /etc/bash/bashrc.d loaded for every users.

However, probably because it uses a different syntax with frozen set, it results in:

[71/71] Compiling kitty/gl-wrapper.c ... done
[6/6] Linking kittens/choose/subseq_matcher ... done
Failed to change the value of shell_integration

And as it says, is unchanged:

$ grep shell_integration: linux-package/lib/kitty/kitty/options/types.py 
    shell_integration: typing.FrozenSet[str] = frozenset({'enabled'})

Not a major problem given using a sed to workaround for now, although I'd rather use intended method than arbitrarily mangle installed files.
sed -i "/shell_integration:/s/'enabled'/&,'no-rc'/" kitty/options/types.py

To Reproduce

./setup.py linux-package --shell-integration=enabled\ no-rc

Environment details

This is on Gentoo, if it matters.

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

No branches or pull requests

1 participant