truncate prompt display to first line only
This commit is contained in:
parent
cc1d2628a9
commit
2722761125
|
|
@ -67,7 +67,7 @@ export async function action(opts: { json?: boolean }) {
|
|||
console.log(` ${dim}${"BRANCH".padEnd(branchWidth)} PROMPT${reset}`)
|
||||
|
||||
for (const s of sessions) {
|
||||
const prompt = (s.prompt ?? "").replace(/\n/g, " ")
|
||||
const prompt = (s.prompt ?? "").split("\n")[0]
|
||||
const status = statuses[s.branch]
|
||||
const icon = icons[status]
|
||||
const bc = branchColors[status]
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user