From 12f9dcceb9151c4883e4966a56c23bc81f8b2c4a Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Mon, 7 Oct 2024 11:45:56 +0200 Subject: [PATCH] bash: set terminal window title --- dotfiles/.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc index 24e6235..8cf27ec 100644 --- a/dotfiles/.bashrc +++ b/dotfiles/.bashrc @@ -16,7 +16,7 @@ shopt -s histappend [[ -f $HOME/.bash_functions ]] && source "$HOME/.bash_functions" # 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-$ " # Use fzf if installed.