diff --git a/bash/bashrc b/bash/bashrc index 11c9dd5a8..318c88860 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -44,10 +44,12 @@ if ! shopt -oq posix; then fi fi -# Bell when prompt is returned to mark as urgent -PROMPT_COMMAND='printf "\a"; history -a' +# Set window title to last command +PROMPT_COMMAND='echo -e -n "\033]2;$_\007"' # Reconfigure prompt after each return PROMPT_COMMAND="$PROMPT_COMMAND; source ${HOME}/.dotfiles/bash/prompt.sh" +# Bell when prompt is returned to mark as urgent +PROMPT_COMMAND="$PROMPT_COMMAND;printf \"\a\"; history -a" # Enable color support if possible if [ -x /usr/bin/dircolors ]; then @@ -102,3 +104,6 @@ export XDG_DATA_DIRS="$XDG_DATA_DIRS:${HOME}/.config/flatpak/exports/share" export SWAYSOCK=`sway --get-socketpath` export CHROME_EXECUTABLE="/usr/bin/chromium" export FLATPAK_IDE_LOG_LEVEL="0" + +# Set initial title +echo -e -n "\033]2;Welcome to Bash\007"