Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🐞 Git Branch detection captures shell outputs rather than just the branch #2151

Open
Labels
bugSomething isn't working
@joe-bro-1

Description

@joe-bro-1

Description

In my ZSH configuration (~/.zprofile) I echo text out, this runs when I open a new shell, but the text echoed shows up in the Toolbar's subtitle where it shows the branch.

To Reproduce

This assumes the same machine configuration as me, since I'm unsure how much of this is CodeEdit's decisions VS my setup, though assuming you run ZSH as your standard shell I'd assume it would replicate properly.

open.zprofile

open~/.zprofile -a CodeEdit

add anecho statement, such as

echo"This text should not show up in CodeEdit branch info, it should only be seen in interactive shells"

save.zprofile

Quite CodeEdit

Open a Git initialized repository in CodeEdit

Or make a temporary Git repo and open it...
    setopt INTERACTIVE_COMMENTS# ↑ allow comments in the shells interactive mode (default off in zsh)    dir="$(mktemp -d)"# makes a temporary folder (so it auto deletes by the OS later)cd$dir# go to our temporary directory        git init# initialize a Git repository in the directory    open. -a CodeEdit# open our temporary git repo in CodeEdit

and in the branch section you will see an output like the image attached

Expected Behavior

CodeEdit runs a non-interactive shell to capture the current branch, and only captures branch info via Git's stdout, rather than the shell contents

Version Information

CodeEdit: 0.3.6 (47)
macOS: 26.1.0

Additional Context

No response

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp