1

Does anyone know if it's possible to remove user and hostname from Gnome Terminal?

I wish to only see the running command there.

enter image description here

orschiro
  • 13,317
  • 17
  • 87
  • 161

1 Answers1

3

This is pretty easy to do:

  1. Open your Terminal (if it's not already open)

  2. Open your .bashrc file

  3. Find this section:

    # If this is an xterm set the title to user@host:dir
    case "$TERM" in
    xterm*|rxvt*)
        PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
        ;;
    *)
        ;;
    esac
    
  4. Remove \u@\h:

  5. Save the file, and restart Terminal.