Please write environment variable configuration to ~/.pam_environent and ~/.profile, or /etc/profile.d instead of ~/.bashrc

Open
#13 7 comments 1 reaction 0 assignees View on GitHub

@michaelstoops is already working on this.

Since Apr 3, 2021.

  • #20 by @michaelstoops — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
shell
Domain
tooling

Research direction

Inspect the setup script that currently writes environment variables to ~/.bashrc, and review linked pull request #20 for existing work. Verify the chosen ~/.pam_environment, ~/.profile, or /etc/profile.d behavior works outside interactive Bash sessions and with another shell or a graphical IDE.

Written by the indexing model from the issue text.

Description

This script write environment variable configuration to ~/.bashrc, which means that this configuration will only take effect in an interactive bash session. However, users may want to launch the IDE under a graphical environment, or they may wish to use a different shell, e.g. zsh.
So the configuration should be writen to ~/.pam_environment and ~/.profile instead. Alternatively, if the configuration needs to take effect for all users, the script should create a new file in /etc/profile.d and write the configuration there.

Dominant language
Shell
Stars
128
Forks
55
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/pico-setup

All issues in raspberrypi/pico-setup

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.