Skip to content

Only warpify on WarpTerminal#162

Open
syscl wants to merge 2 commits into
warpdotdev:mainfrom
syscl:patch-1
Open

Only warpify on WarpTerminal#162
syscl wants to merge 2 commits into
warpdotdev:mainfrom
syscl:patch-1

Conversation

@syscl

@syscl syscl commented May 31, 2026

Copy link
Copy Markdown

Without this change, on default terminal apps (e.g. macOS's terminal) it will show an urgly line per terminal process

Last login: Sun May 31 01:02:11 on ttys005
$f{"hook": "SourcedRcFileForWarp", "value": { "shell": "zsh"}}?% 

The condition make the apply cleaner, test locally and works

Summary

Related issues

#164

Validation

Screenshots

Follow-ups

Without this change, on default terminal apps (e.g. macOS's terminal) it will show an urgly line per terminal process
```
Last login: Sun May 31 01:02:11 on ttys005
$f{"hook": "SourcedRcFileForWarp", "value": { "shell": "zsh"}}?% 
```
The condition make the apply cleaner, test locally and works
@cla-bot

cla-bot Bot commented May 31, 2026

Copy link
Copy Markdown

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @syscl on file. In order for us to review and merge your code, each contributor must visit https://cla.warp.dev to read and agree to our CLA. Once you have done so, please comment @cla-bot check to trigger another check.

@vercel

vercel Bot commented May 31, 2026

Copy link
Copy Markdown

@syscl is attempting to deploy a commit to the warpdotdev Team on Vercel.

A member of the Team first needs to authorize it.

@oz-for-oss

oz-for-oss Bot commented May 31, 2026

Copy link
Copy Markdown
Contributor

@syscl

This PR is not linked to an issue that is marked with ready-to-implement.

Issue-state enforcement details:

  • Associated same-repo issues checked: none

  • Required readiness label: ready-to-implement

To continue, link this PR to a same-repo issue such as Closes #123 in the PR description, and make sure that issue has ready-to-implement.

Powered by Oz

@oz-for-oss oz-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@syscl

This PR is not linked to an issue that is marked with ready-to-implement.

Issue-state enforcement details:

  • Associated same-repo issues checked: none

  • Required readiness label: ready-to-implement

To continue, link this PR to a same-repo issue such as Closes #123 in the PR description, and make sure that issue has ready-to-implement.

Powered by Oz

@syscl

syscl commented May 31, 2026

Copy link
Copy Markdown
Author

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed label May 31, 2026
@cla-bot

cla-bot Bot commented May 31, 2026

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

@syscl

syscl commented May 31, 2026

Copy link
Copy Markdown
Author

@oz-agent ready-to-implement

@hongyi-chen hongyi-chen requested a review from kevinyang372 June 2, 2026 18:28

@kevinyang372 kevinyang372 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for contributing. Can you make sure to test these changes on these shells and post screenshots of them working?


# For bash subshells, add to ~/.bashrc or ~/.bash_profile.
printf '\eP$f{"hook": "SourcedRcFileForWarp", "value": { "shell": "bash"}}\x9c'
if [[ "$TERM_PROGRAM" == "WarpTerminal" ]];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Are we missing then here?


# For fish subshells, add to ~/.config/fish/config.fish.
if status is-interactive
if status is-interactive and test "$TERM_PROGRAM" = "WarpTerminal"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think and needs a statement separator (; or newline) before it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants