Skip to content

Commit 0c0d3b6

Browse files
jeanp413roboquat
authored andcommitted
Use .bash_profile for login shells
1 parent 1aef59b commit 0c0d3b6

File tree

1 file changed

+3
-3
lines changed
  • components/supervisor/pkg/supervisor

1 file changed

+3
-3
lines changed

components/supervisor/pkg/supervisor/ssh.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,13 @@ func configureSSHDefaultDir(cfg *Config) {
219219
log.Error("cannot configure ssh default dir with empty repo root")
220220
return
221221
}
222-
file, err := os.OpenFile("/home/gitpod/.bashrc", os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0o644)
222+
file, err := os.OpenFile("/home/gitpod/.bash_profile", os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0o644)
223223
if err != nil {
224-
log.WithError(err).Error("cannot write .bashrc")
224+
log.WithError(err).Error("cannot write .bash_profile")
225225
}
226226
defer file.Close()
227227
if _, err := file.WriteString(fmt.Sprintf("\nif [[ -n $SSH_CONNECTION ]]; then cd \"%s\"; fi\n", cfg.RepoRoot)); err != nil {
228-
log.WithError(err).Error("write .bashrc failed")
228+
log.WithError(err).Error("write .bash_profile failed")
229229
}
230230
}
231231

0 commit comments

Comments
 (0)