Skip to content

git-repos switches to a new (potentially different) shell #1104

Description

@Jiehong

Description
Running tv git-repos finds repos, but when hitting enter, it opens the repo in a different shell.

Example
On MacOS, the $SHELL variable is set to zsh, yet, my terminal emulator is set to always start fish instead.

so, tv git-repos drops me into zsh when going to a specific repo.

Expected behavior
git-repos should only cd to the repo, not create a new shell.

Environment

  • OS: MacOS 26
  • TV version: television 0.15.9
  • shell: [fish
  • terminal: Ghostty
  • Your configuration file (~/.config/television/config.toml)
  • default
  • The channel you are using

git-repos.toml contains this:

[actions.cd]
description = "Open a new shell in the selected repository"
command = "cd {} && $SHELL"
mode = "execute"

I think the default command should be cd {} without executing a new subshell (which is an incorrect shell for me).

What's the reasoning behind starting a new shell when going to a new git repo?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions