Open viceice opened 3 years ago
I'm using powerline theme and like to update my terminal title.
powerline
The default ubuntu promt sets it, but oh-my-posh / powerline them not. So what do i need to add to get a simple title?
Looks like i need to get something like \[\e]0;\u@\h: \w\a\] before the normal $PS1.
\[\e]0;\u@\h: \w\a\]
$PS1
Looks like #161 will fix this?
Workaround: add to end of .bashrc
.bashrc
function __term_title { PS1="\[\e]0;\u@\h: \w\a\]${PS1}" } PROMPT_COMMAND="${PROMPT_COMMAND};__term_title"
I'm using
powerline
theme and like to update my terminal title.The default ubuntu promt sets it, but oh-my-posh / powerline them not. So what do i need to add to get a simple title?
Looks like i need to get something like
\[\e]0;\u@\h: \w\a\]
before the normal$PS1
.