Skip to content

Commit

Permalink
clean terminal switch message cmd history (#3967)
Browse files Browse the repository at this point in the history
  • Loading branch information
bxy4543 authored Sep 21, 2023
1 parent 6d52319 commit cd9e5d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function Terminal({ url, site }: { url: string; site: string }) {
);
iframeRef.current?.contentWindow?.postMessage(
{
command: `echo -e "\\e[A\\e[K 👉 Switched to namespace \\e[1;4;32m${nsid}\\e[0m"`
command: `echo -e "\\e[A\\e[K 👉 Switched to namespace \\e[1;4;32m${nsid}\\e[0m" && history -c`
},
url
);
Expand Down

0 comments on commit cd9e5d1

Please sign in to comment.