0

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

1

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.

1
  • I don't know if this is what the OP was looking for or not, but I had no idea these keyboard shortcuts even existed, and I've been using Terminator for a few years now! These are great, I just wish they were ~discoverable~ in the pointer secondary-click context menu (e.g., like toggling the scrollbar, changing profile, switching layout, etc.). I suppose I'll still need to look into modifying my zsh config though to have the terminal or the window show the currently running command name (e.g., glances) without me manually setting a title.
    – Inkayacu
    Mar 20 at 13:36
0

Executing this in your .bash_profile should do it:

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

Note the "^[" is escape.

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.