It would be cool if you can see the command you’re running from the terminal title. and not “root@kali:~”
especially if you have many windows.
I did a Google search and found a way to accomplish that.
Edit your .bashrc using nano (or any text editor you like)
paste this at the end of the file.
trap ‘echo -ne "\033]2;$(history 1 | sed "s/^[ ]*[0-9]*[ ]*//g")\007"’ DEBUG
Save it (Ctrl+O if you’re using nano) then (Ctrl+X to close)
Close the windows and run a new one to check if it worked.