Comments (7)
Yes, I could see that the PS1 maybe should be overridden to something plain like (atmos) ue1-eks >
so it's clear you're in the shell and for which particular stack. We could then maybe disable this behavior by passing --override-ps1=false
from atmos.
May I work on this issue @osterman ?
from atmos.
Possibly, could you suggest your approach?
from atmos.
I thought of introducing the PS1 environment variable in the componentEnvList at internal/exec/shell_utils.go#L163. I tried this on the forked setup locally but the PS1 value is not getting override :( . So for now, I don't have any alternate approach.
from atmos.
Good news, bad news. @rajhawaldar @nitrocode
Bad News
Bad news is, I think little can be done here, since we're just invoking a "login" (-l
) shell based on SHELL
. The login shell will always overwrite the environment. There's no general solution that will work, other than the developer modifying their own .zshrc
or .bashrc
file with a custom prompt.
Alternatively, we could make shell
a parameter in the atmos.yaml
, and if set, use that over the SHELL
env. In that case, the default shell can be changed to not include -l
, which then will not load the RC files.
Good News
The line @rajhawaldar shows that it already passes the component's deep merged environment. The prompt is controlled by PS1
(for bash).
Just set the following in the Stack configuration and it should work.
env:
ATMOS_PS1: "atmos>"
# This works, but gets overridden by the shell's rc file.
# PS1: "atmos>"
Then in your local rc file, check for that variable and set the prompt to it. It's not the ideal solution, and there's nothing about calling an interactive.
If @rajhawaldar wants to add the shell
parameter to the atmos.yaml
, and it solves the PS1, that would be appreciated.
from atmos.
Related Issues (20)
- Workspace "stack-name" already exists
- Enabling Autocompletion for Custom CLI Parameters
- For non-geodesic users, allow `command` templates or auto search for popular directory formats HOT 2
- nix package is failing due to broken tests HOT 2
- Tagging steps / running steps selectively
- workflow - being able to specify some external input
- Retitle context's environment and stage for stacks HOT 1
- Security review of tool
- Add a SECURITY.md file for a public security policy for this repo HOT 1
- Release 1.48.0 breaks existing stacks that use strings with Go template formatting HOT 9
- Support `file://` paths in `component.yml:spec.source.uri`
- Support mixins without `vendor pull`
- unable to install customized quickstart image
- Common atmos aliases HOT 4
- Latest release `v.1.54.0` did not publish standard packages HOT 2
- New `atmos` TUI supports `hjkl` navigation but `h,l` don't function as `←,→` HOT 3
- Atmos generation of `backend.tf.json` is using deprecated `terraform.backend.s3.role_arn` HOT 4
- Docs on how to use atmos with opentofu HOT 4
- `terraform shell` should drop you into the correct working directory HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atmos.