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

Make it easier to switch between hosts (and accounts) #61

Open
avborup opened this issue Feb 8, 2023 · 1 comment
Open

Make it easier to switch between hosts (and accounts) #61

avborup opened this issue Feb 8, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@avborup
Copy link
Owner

avborup commented Feb 8, 2023

Currently, if you want to submit to itu.kattis.com instead of open.kattis.com, you need to manually edit the .kattisrc.

I suggest adding an optional profiles section to kitty.yml where you can define multiple .kattisrc files and names for them (or just avoid configuration and have multiple files like .kattisrc, .kattisrc.itu, etc). Kitty would then be extended with a new use command, so you can easily switch between accounts like kitty use itu. This also allows users to use multple accounts on the same host.

This would require some file in which kitty can save state.

@avborup avborup added the enhancement New feature or request label Feb 8, 2023
@PatrickMatthiesen
Copy link

Couldn't it be done in the same file and have the kitty comment out and comment in the required sections?
That way no state is needed.

Or have the state in the .kattisrc file and have Kitty do a quick search and replace on a section of the file. Then it would only need to read that part if it exists and change behavior if needed.

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

No branches or pull requests

2 participants