Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ujust, refactor shell change tasks
This adds a little shim, `/usr/bin/ujust`, to run, `just --unstable --justfile /usr/share/ublue-os/justfile`. I think this is a much cleaner way to run our `just` tasks than putting a `~/.justfile` in the home directory, for a number of reasons. One of them is that this does not require aliasing `just=just --unstable`, and another is that a user can actually have their own `~/.justfile` with no regard for including our global one. I didn't remove the `just` aliases from the shell dotfiles, because I'm not sure what breaking changes that might cause -- documentation, for sure, but also does yafti or anything else depend on that? Also to be honest I'm not sure where the default just alias comes from. I didn't actually look yet :P I did this because I realized how much duplicate code and room for errors I had in the shell change tasks I rewrote -- I think it's much better to write a task with an argument, `just chsh /usr/bin/newshell`, and then call that from other tasks that need to change the shell. However, I saw the limitations of using shell aliases to add the `--unstable` flag quite quickly -- my sub-just-invocations became longer than I'd like them to be. See https://just.systems/man/en/chapter_40.html and note how much nicer that is than `just --unstable --file /usr/share/ublue-os/justfile`... I'd definitely like to see others' thoughts on this! Feel free to ping me on Discord @bri9. --bri
- Loading branch information