Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Load Bash Profile in Mac #9151

Closed
kferrone opened this issue Dec 16, 2022 · 5 comments
Closed

How to Load Bash Profile in Mac #9151

kferrone opened this issue Dec 16, 2022 · 5 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. platform/mac

Comments

@kferrone
Copy link

Describe the topic
I have installed KUI on MacM1 using Brew. When I launch KUI, I notice that nothing from .bashrc, .bash_profile, nor .profile is loaded in the context. Therefore all my helper scripts are unavailable, no variables either. If I try something like source ~/.bash_profile, still nothing???

What I did to kind of get it to work right; from a terminal simply run /Applications/Kui.app/Contents/MacOS/kui. This launches KUI using the terminal context instead. However, I still can't use any of my aliases nor variables from any profile.

Your suggestions for this topic
Run KUI using the normal terminal profile so my setup just works in KUI.

@starpit
Copy link
Contributor

starpit commented Dec 16, 2022

Hello there, thanks for the feedback!

macOS treats launches from the dock or finder (e.g. double clicks) a bit specially: it does not run them through a normal login shell. Kui has some hacks in place that attempt to work around this, however they are limited to environment variables at the moment.

Regardless, it sounds like even those aren't working! If you could open up the dev tools (View -> Toggle Developer Tools), and then in the Console, if you filter by prefetch, you may see messages like:

plugins/bash-like/pty/prefetch prefetchEnv +0ms
plugins/bash-like/pty/prefetch skipping prefetchHome +0ms
plugins/bash-like/pty/prefetch prefetchEnv got shell +15ms /bin/bash
plugins/bash-like/pty/prefetch got env +102ms Object
plugins/bash-like/preload done with state prefetch +135ms

or, if this logic fails, you will see mentions of errors. Do you see any of this?

Thanks!

@starpit starpit added kind/bug Categorizes issue or PR as related to a bug. platform/mac labels Dec 16, 2022
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 16, 2023
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Apr 15, 2023
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

@k8s-ci-robot
Copy link

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. platform/mac
Projects
None yet
Development

No branches or pull requests

4 participants