Skip to content

Commit b704a5e

Browse files
committed
removing commented runhooks. nushell will load bash hooks as is.
1 parent c31476b commit b704a5e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

internal/devbox/devbox.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -380,18 +380,6 @@ func (d *Devbox) EnvExports(ctx context.Context, opts devopt.EnvExportsOpts) (st
380380
envStr = fmt.Sprintf("%s\n%s;\n", envStr, hooksStr)
381381
}
382382

383-
// if opts.RunHooks {
384-
// var hooksStr string
385-
// if opts.ShellFormat == devopt.ShellFormatNushell {
386-
// // Nushell uses 'source' command
387-
// hooksStr = "source \"" + shellgen.ScriptPath(d.ProjectDir(), shellgen.HooksFilename) + "\""
388-
// } else {
389-
// // Bash/Zsh/Fish use '.' command
390-
// hooksStr = ". \"" + shellgen.ScriptPath(d.ProjectDir(), shellgen.HooksFilename) + "\""
391-
// }
392-
// envStr = fmt.Sprintf("%s\n%s;\n", envStr, hooksStr)
393-
// }
394-
395383
if !opts.NoRefreshAlias {
396384
envStr += "\n" + d.refreshAliasForShell(string(opts.ShellFormat))
397385
}

0 commit comments

Comments
 (0)