-1

I want to change the text /bin/bash to root@kali in the title of terminator and the terminal. How may I do this?

enter image description here

0

Executing this in your .bash_profile should do it:

echo -n "^[]2;root@kali^G"

Note the "^[" is escape.

0

To generate a configuration file , run:

terminator -l init;

edit the config file:

nano ~/.config/terminator/config

Add a new title for the window / terminal: e,g:

[global_config]
[keybindings]
[profiles]
  [[default]]
    cursor_color = "#aaaaaa"
[layouts]
  [[default]]
    [[[window0]]]
      type = Window
      parent = ""
      title = "window title here"
    [[[child1]]]
      type = Terminal
      parent = window0
      profile = default
      title = "terminal title here"
      command = ""
[plugins]

Alternative way: Use Ctrl + Alt + w to set the window title and Ctrl + Alt + x to set the terminal title.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.