Comments (6)
@tedmiston What OS? If a user has deleted their ~/.bash_profile
they have likely done so for a reason. I'm not opposed, just one thing to consider
from astro-cli.
He was on macOS (not sure which version). In his case the file was renamed, potentially out of error or mistake because he had no other commands in it.
Do you know if an empty ~/.bash_profile
is automatically created for a new user account on macOS / Linux? I'm not sure.
If it's automatically created and the user doesn't have one, perhaps we could output an error message something like:
Please create a .bash_profile so that we can add the CLI binary to your $PATH.
$ touch ~/.bash_profile
What do you think?
from astro-cli.
I'm 90% sure either .bash_profile or .bashrc has to be created on OS X, but could be misremembering.
In my opinion, if the file doesn't exist we should just output a message like:
Couldn't automatically add astro-cli to your path. Add the following to your profile:
export PATH="$PATH:/path/to/astro"
That being said, aren't we already putting astro-cli in /usr/local/bin or something?
from astro-cli.
Yeah, personally I prefer being given the command to add to my profile vs having a script modify my profile for me. Partly because I put most commands in .bashrc instead of .bash_profile myself.
from astro-cli.
Yea, astro
should be installed into standard path that should already exist in $PATH
. Where in our installation does it append this?
from astro-cli.
i'd say we should detect presence of ~/.bash_profile and tell them they need create it before proceeding, could link to a guide
from astro-cli.
Related Issues (20)
- `astro dev object import` ignores `conn_extras` field HOT 1
- DEV - Create env variables when no deployments are present issues panic errors HOT 1
- Secret Env Vars overwritten to blank strings when updating via deployment file
- `astro deployment variable create` breaking on `=` characters
- increase deployment list limit
- Generic connections showing different results in local when compared to astro HOT 3
- Unable to run DockerOperator HOT 4
- BUG: upgrade messing output in deployment files HOT 2
- Airflow UI URL after `astro deploy` is broken HOT 1
- Enable updating deployment dev mode via CLI
- Allow create/edit/delete of kubernetes secrets from Astro CLI
- Airflow breaks after authenticating when using `astro dev start` HOT 14
- Improve message for the missed "workspace" option while using Org level tokens
- Warn when an EOL Runtime version is used
- Block action when a yanked Runtime version is used HOT 1
- Feature: `astro-cli deploy -n NAMESPACE`
- Latest CLI versions breaks when trying to create a deployment with the same name as in a different Workspace HOT 1
- Upgrade Test Command doesn't handle errors properly
- `astro login` fails on callback "This site canβt provide a secure connection" HOT 4
- astro workspace switch will take a workspace name and then functionality breaks
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 astro-cli.