Skip to content

Commit 8e519f7

Browse files
Fix terminal shell prompt (starship) not loading
Use login shell (-l flag) when spawning terminals via dtach so bash sources .profile which sources .bashrc where starship init lives. This fixes the regression where new terminals showed minimal prompts instead of starship when Vibora runs under systemd with limited PATH.
1 parent 55c65ae commit 8e519f7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

server/terminal/dtach-service.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@ export class DtachService {
115115
const socketPath = this.getSocketPath(terminalId)
116116
const shell = process.env.SHELL || '/bin/bash'
117117
// -n: don't attach after creating
118-
// -z: use the specified socket path
119-
return ['dtach', '-n', socketPath, '-z', shell]
118+
// -z: disable suspend key
119+
// -l: login shell (sources .profile which sources .bashrc for starship/etc)
120+
return ['dtach', '-n', socketPath, '-z', shell, '-l']
120121
}
121122

122123
// Get command to attach to an existing session

0 commit comments

Comments
 (0)