vercel / hyper

A terminal built on web technologies
https://hyper.is
MIT License
43.46k stars 3.53k forks source link

Can't start terminal with tmux #6604

Open hanfezh opened 2 years ago

hanfezh commented 2 years ago

Issue

Can't start terminal with default shell tmux /opt/homebrew/bin/tmux in macOS. It looks blocked, but it will work after opening another new tab with command + T.

If I change the default shell to /bin/zsh with chsh, and keep the config "shell": "/opt/homebrew/bin/tmux" at .hyper.js, Hyper.app can open the terminal normally.

How could I make it work with default shell tmux not zsh?

image

image

image


{
  "updateChannel": "stable",
  "fontSize": 15,
  "fontFamily": "\"Source Code Pro for Powerline\", Menlo, \"DejaVu Sans Mono\", Consolas, \"Lucida Console\", monospace",
  "fontWeight": "normal",
  "fontWeightBold": "bold",
  "lineHeight": 1,
  "letterSpacing": 0,
  "cursorColor": "rgba(248,28,229,0.8)",
  "cursorAccentColor": "#000",
  "cursorShape": "BLOCK",
  "cursorBlink": false,
  "foregroundColor": "#fff",
  "backgroundColor": "#000",
  "selectionColor": "rgba(248,28,229,0.3)",
  "borderColor": "#333",
  "css": "",
  "termCSS": "",
  "workingDirectory": "",
  "showHamburgerMenu": "",
  "showWindowControls": "",
  "padding": "12px 14px",
  "colors": {
    "black": "#000000",
    "red": "#C51E14",
    "green": "#1DC121",
    "yellow": "#C7C329",
    "blue": "#0A2FC4",
    "magenta": "#C839C5",
    "cyan": "#20C5C6",
    "white": "#C7C7C7",
    "lightBlack": "#686868",
    "lightRed": "#FD6F6B",
    "lightGreen": "#67F86F",
    "lightYellow": "#FFFA72",
    "lightBlue": "#6A76FB",
    "lightMagenta": "#FD7CFC",
    "lightCyan": "#68FDFE",
    "lightWhite": "#FFFFFF",
    "limeGreen": "#32CD32",
    "lightCoral": "#F08080"
  },
  "shell": "/opt/homebrew/bin/tmux",
  "shellArgs": [
    "-D"
  ],
  "env": {},
  "bell": "SOUND",
  "copyOnSelect": true,
  "defaultSSHApp": true,
  "quickEdit": false,
  "macOptionSelectionMode": "vertical",
  "webGLRenderer": true,
  "webLinksActivationKey": "",
  "disableLigatures": true,
  "disableAutoUpdates": true,
  "screenReaderMode": false,
  "preserveCWD": true
}

plugins ```json { "plugins": [ "hyper-solarized-dark", "hyper-search", "hyperpower" ], "localPlugins": [] } ```
maestroDever commented 1 year ago
shell: '/opt/homebrew/bin/tmux',
shellArgs: [],

This will start hyper with a new tmux session. I am not able to attach or create a new session with a name. For example, on iTerm2, I can set Login shell as a default shell and run tmux attach -t main || tmux new -s main command at start to attach a new session. I've tried with shellArgs with tmux as a shell on Hyper and doesn't seem like it's possible.