From 24721f07cbdbdc16784e048a1407e8a978bd9f83 Mon Sep 17 00:00:00 2001 From: Christian Betz Date: Thu, 2 Jan 2025 15:09:23 +0100 Subject: [PATCH] move automatic screen title to README (.bashrc) --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a2d5938..ee2a546 100644 --- a/README.md +++ b/README.md @@ -21,4 +21,20 @@ Add to `.bashrc`: PS1='[\[\e[38;5;215m\]$?\[\e[0m\]][\[\e[38;5;40m\]\t\[\e[0m\]][\[\e[96m\]\u\[\e[0m\]@\[\e[38;5;32m\]\H\[\e[0m\]][\[\e[96m\]\w\[\e[0m\]] ' ``` -Nice editor: [https://bash-prompt-generator.org/](https://bash-prompt-generator.org/) \ No newline at end of file +Nice editor: [https://bash-prompt-generator.org/](https://bash-prompt-generator.org/) + +# automatic GNU screen window title + +``` +[[ "${TERMCAP}" == *"screen"* ]] && printf '\ek%s\e\\' $(whoami)@$(uname -n) +``` + +# all-in-one + +``` +cd +wget -O .spezi.bash_aliases --quiet -N "https://git.ip.spezi.it/Spezi/dotfiles/raw/branch/main/bash_aliases" +. ~/.spezi.bash_aliases +PS1='[\[\e[38;5;215m\]$?\[\e[0m\]][\[\e[38;5;40m\]\t\[\e[0m\]][\[\e[96m\]\u\[\e[0m\]@\[\e[38;5;32m\]\H\[\e[0m\]][\[\e[96m\]\w\[\e[0m\]] ' +[[ "${TERMCAP}" == *"screen"* ]] && printf '\ek%s\e\\' $(whoami)@$(uname -n) +``` \ No newline at end of file