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

Separate just from ujust #2108

Open
Danar435 opened this issue Jan 4, 2025 · 2 comments
Open

Separate just from ujust #2108

Danar435 opened this issue Jan 4, 2025 · 2 comments
Labels
bug Something isn't working help wanted Keep Bluefin alive, dive in!

Comments

@Danar435
Copy link
Contributor

Danar435 commented Jan 4, 2025

Describe the bug

I've recently started playing around with just. As far as I know, it should be separate from ujust, but by default the .justfile in the home directory imports all the commands from ujust.

# You can add your own commands here! For documentation, see: https://ublue.it/guide/just/
import "/usr/share/ublue-os/justfile"

You can of course delete the line, but it gets added back in every time you run bash. It's annoying.

Image

What did you expect to happen?

Just should be separate from ujust. Likewise, running bash should not add the ujust commands back to the user's justfile.

Output of bootc status

Current staged state is native ostree
Current booted state is native ostree
Current rollback state is native ostree

Output of groups

kristiyan wheel audio lxd incus-admin docker libvirt

Extra information or context

PS: If I may suggest defaulting ujust to ujust --choose instead of ujust --list, because it seems to be the preferred way to use ujust, as suggested by motd.

@dosubot dosubot bot added the bug Something isn't working label Jan 4, 2025
@castrojo
Copy link
Member

castrojo commented Jan 4, 2025

Yeah I'd love to separate this better. Ideally we shouldn't be adding a dotfile to the user's directory at all but we did that years ago, needs investigation. Open to ideas on implementation!

@castrojo castrojo added the help wanted Keep Bluefin alive, dive in! label Jan 4, 2025
@Danar435
Copy link
Contributor Author

Danar435 commented Jan 5, 2025

I personally like the idea to have a .justfile in the home directory, as that makes just commands global. A justfile in a different directory takes precedence however, so there shouldn't be any issue with projects and such. In my case it's like better shell aliases.

I suggest generating a .justfile when the user first installs the os (not every time that bash is ran), that includes information on how to set custom just commands (and excludes all the ujust commands). Could be written in plaintext or link to somewhere else.

If the user wants specific just commands for a specific project, they can do just --init, which would create the justfile in that directory. From there on they can add the commands they want, completely seperate from the justfile in the home directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Keep Bluefin alive, dive in!
Projects
None yet
Development

No branches or pull requests

2 participants