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

Tweak bashrc #1363

Merged
merged 3 commits into from
Jul 6, 2022
Merged

Tweak bashrc #1363

merged 3 commits into from
Jul 6, 2022

Conversation

dharhas
Copy link
Member

@dharhas dharhas commented Jul 6, 2022

Resolves #1157

Changes introduced in this PR:

  • sets force-color-prompt
  • adds a colorized bash prompt with git and conda integration

image

Types of changes

What types of changes does your PR introduce?

Put an x in the boxes that apply

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds a feature)
  • Breaking change (fix or feature that would cause existing features to not work as expected)
  • Documentation Update
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • Other (please describe):

Testing

Requires testing

  • Yes
  • No

In case you checked yes, did you write tests?

  • Yes
  • No

Documentation

No docs changes required.

@dharhas dharhas requested a review from viniciusdc July 6, 2022 15:34

NAME=`whoami | cut -d'@' -f1`

PS1="\[$CYAN\]$NAME:\w\[$RESET\]\$(parse_git_branch) \n\[$GREEN\]\A \$ \[$RESET\]"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dharhas, isn't this conflicting with line 65?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it overrides line 65. I'm unclear whether setting force_color_prompt will work since bashrc is readonly and I can't test. But I can move this definition over there.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its okay keeping like that for now

@viniciusdc
Copy link
Contributor

@iameskild tested on a Minikube deployment, and everything is running. We can also disregard the falling k8s test as it was successfully deployed locally when he tested.

Copy link
Contributor

@viniciusdc viniciusdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@viniciusdc viniciusdc merged commit 8355715 into main Jul 6, 2022
@iameskild iameskild deleted the tweak-bashrc branch August 18, 2022 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ENH] - Cleanup terminal prompt
2 participants