Can't run hyper command in wsl 2.0 with ohmyzsh
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 44.7k
- Forks
- 3.6k
- Avg merge
- 21m
- Merged PRs (30d)
- 1
Description
- Your Hyper.app version is 3.2.3. Please verify you're using the latest Hyper.app version
- I have searched the issues of this repo and believe that this is not a duplicate
- Any relevant information from devtools? (CMD+OPTION+I on macOS, CTRL+SHIFT+I elsewhere):
N/A
- Is the issue reproducible in vanilla Hyper.app?
Yes
Issue
Below is error when I try to run hyper command. Any arguments with commands return this same error. It's pretty new setup. I formated my disk. WSL distro is latest Ubuntu. I'm using zsh with ohmyzsh. I add to path again and restart computer, but still nothing works.
hyper
/usr/bin/env: ‘bash\r’: No such file or directory
- Hyper version: undefined "3.2.3"
- OS ARCH VERSION: win32 x64 10.0.22000
- Electron: 17.2.0 LANG: undefined
- SHELL: undefined TERM: undefined
.hyper.js contents
{
"updateChannel": "stable",
"fontSize": 15,
"fontFamily": "\"FiraMono NF\", Menlo, \"DejaVu Sans Mono\", Consolas, \"Lucida Console\", monospace",
"fontWeight": "normal",
"fontWeightBold": "bold",
"lineHeight": 1,
"letterSpacing": 0,
"cursorColor": "rgba(0, 165, 255, 1)",
"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": "C:\\Windows\\System32\\wsl.exe",
"shellArgs": [
"~"
],
"env": {},
"bell": "SOUND",
"copyOnSelect": false,
"defaultSSHApp": true,
"quickEdit": false,
"macOptionSelectionMode": "vertical",
"webGLRenderer": true,
"webLinksActivationKey": "",
"disableLigatures": true,
"disableAutoUpdates": false,
"screenReaderMode": false,
"preserveCWD": true
}
plugins
{
"plugins": [
"hypercwd",
"hyper-search"
],
"localPlugins": []
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing the hyper command in Hyper 3.2.3 using WSL 2 with the latest Ubuntu and zsh/oh-my-zsh, then inspect how the command is launched from the configured C:\Windows\System32\wsl.exe shell. Done means Hyper starts and accepts commands without /usr/bin/env: ‘bash\r’: No such file or directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, zsh
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100