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