Skip to content

[help wanted] PTY terminal — auto-detect default shell on Linux/macOS #10

Description

@GoDiao

Background

The built-in PTY terminal currently defaults to PowerShell on Windows and gives Linux/macOS users a less-tuned experience. We want the terminal to:

  1. Auto-detect the user's preferred shell ($SHELL, /etc/passwd, or platform default)
  2. Support zsh / bash / fish explicitly on macOS and Linux
  3. Let the user override the default in Settings

Tasks

  • Read $SHELL and fall back to /bin/bash (Linux) or /bin/zsh (macOS Catalina+)
  • Wire the chosen shell through to the portable-pty spawn in desktop/src-tauri/
  • Add a Default shell dropdown in Settings → General
  • Persist the choice to the existing config store
  • Add a vitest unit test for the detection helper

Files

  • desktop/src-tauri/ (PTY module)
  • desktop/src/components/settings/General*
  • desktop/src/stores/ (config slice)

Difficulty / Estimate

⭐⭐ — half a day to a full day if you're new to Tauri.

Mentor

Maintainer can pair on the Rust side if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions