Skip to content

Enhancement: add LABPASSPHRASE to .zshrc #827

@mjbear

Description

@mjbear

Is your feature request related to a problem? Please describe.
Feature request (enhancement).

Describe the solution you'd like
Add LABPASSPHRASE to the .zshrc after line 41 where XTERM is set to help avoid the stumbling block of an unset environment variable upon opening multiple terminals.

Something along the lines of the below snippet should do it.

&& echo "export LABPASSPHRASE=`awk '/password:/{print $2}' /home/coder/.config/code-server/config.yaml`" >> $HOME/.zshrc

Describe alternatives you've considered
We could keep things as they are (manual environment variable instantiation) or automate it a bit more with this enhancement.

Additional context
Before I realized (or looked to find that) the ATD lab environment uses Docker containers, I put in a feature enhancement issue on the avd-workshops repo to add the LABPASSPHRASE environment variable to .zshrc. 🤦‍♂️ 🤷‍♂️

💡 I plan to submit a PR to cover this suggestion once Arista Engineering weighs in. ❤️

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions