support using different login shell #897

Open
DrSensor wants to merge 1 commit from DrSensor/ly:feature/login_shell into master
First-time contributor

What are the changes about?

This add a config to use different login shell when entering a session.

What existing issue does this resolve?

N/A (no issue attached)

This can slim down the memory consumption when using different login shell other than /bin/sh.
When you use different login shell it may look like this:

systemd─┬─...
        .
        ├─...
        .
        ├─ly───fish───ly───sh───systemctl

notice there is 2 different shell spawned

Pre-requisites

  • I have tested & confirmed the changes work locally
## What are the changes about? This add a config to use different login shell when entering a session. ## What existing issue does this resolve? N/A (no issue attached) This can slim down the memory consumption when using different login shell other than `/bin/sh`. When you use different login shell it may look like this: ``` systemd─┬─... . ├─... . ├─ly───fish───ly───sh───systemctl ``` notice there is 2 different shell spawned ## Pre-requisites - [x] I have tested & confirmed the changes work locally
DrSensor canceled time tracking 2025-12-21 23:06:27 +01:00
DrSensor canceled time tracking 2025-12-22 19:05:06 +01:00
Owner

@DrSensor I'm not sure this makes sense, especially since you can change /bin/sh to be your preferred shell. What are the savings in memory usage you found?

@DrSensor I'm not sure this makes sense, especially since you can change /bin/sh to be your preferred shell. What are the savings in memory usage you found?
This pull request has changes conflicting with the target branch.
  • src/main.zig
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u feature/login_shell:DrSensor-feature/login_shell
git switch DrSensor-feature/login_shell

Merge

Merge the changes and update on Forgejo.
git switch master
git merge --no-ff DrSensor-feature/login_shell
git switch DrSensor-feature/login_shell
git rebase master
git switch master
git merge --ff-only DrSensor-feature/login_shell
git switch DrSensor-feature/login_shell
git rebase master
git switch master
git merge --no-ff DrSensor-feature/login_shell
git switch master
git merge --squash DrSensor-feature/login_shell
git switch master
git merge --ff-only DrSensor-feature/login_shell
git switch master
git merge DrSensor-feature/login_shell
git push origin master
Sign in to join this conversation.
No description provided.