bash: set terminal window title

This commit is contained in:
Vladan Popovic 2024-10-07 11:45:56 +02:00
parent 750cd50c3d
commit 12f9dcceb9

View file

@ -16,7 +16,7 @@ shopt -s histappend
[[ -f $HOME/.bash_functions ]] && source "$HOME/.bash_functions" [[ -f $HOME/.bash_functions ]] && source "$HOME/.bash_functions"
# Save working dir on every prompt. # Save working dir on every prompt.
export PROMPT_COMMAND='pwd > $HOME/.cwd' export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"; pwd > $HOME/.cwd'
export PS1="${Yellow}\d \A ${Off}${Green}\u@\h: ${Off}\w ${Red}\$(parse_branch git)${BRed}\$(parse_branch fossil)${Off}\n-$ " export PS1="${Yellow}\d \A ${Off}${Green}\u@\h: ${Off}\w ${Red}\$(parse_branch git)${BRed}\$(parse_branch fossil)${Off}\n-$ "
# Use fzf if installed. # Use fzf if installed.