Skip to content

Terminal initrc support#1590

Merged
RohitKushvaha01 merged 5 commits intoAcode-Foundation:mainfrom
RohitKushvaha01:alpine-shell-stuff-idk
Sep 16, 2025
Merged

Terminal initrc support#1590
RohitKushvaha01 merged 5 commits intoAcode-Foundation:mainfrom
RohitKushvaha01:alpine-shell-stuff-idk

Conversation

@RohitKushvaha01
Copy link
Member

@RohitKushvaha01 RohitKushvaha01 commented Sep 16, 2025

Summary

This PR introduces support for an /initrc file that is automatically executed at the start of each new session. This allows users to customize their environment by running commands during session initialization, similar to traditional shell startup scripts (like .bashrc or .profile).

Additionally, this update allows the script to configure the default shell for the session and includes improved handling of environment initialization and messages.


Changes

  • Added support for an /initrc script executed at the start of each session
  • Ensured proper execution of ~/.bashrc if it exists
  • Fixed handling of the $SHELL environment variable
  • Added support for displaying a custom Message of the Day (MOTD)

Notes

  • To disable the MOTD, do not delete /etc/acode_motd.
    Instead, run:

     > /etc/acode_motd

@RohitKushvaha01 RohitKushvaha01 merged commit fe1e003 into Acode-Foundation:main Sep 16, 2025
2 checks passed
@RohitKushvaha01 RohitKushvaha01 deleted the alpine-shell-stuff-idk branch September 16, 2025 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants