move automatic screen title to README (.bashrc)

This commit is contained in:
2025-01-02 15:09:23 +01:00
parent 34e341b224
commit 24721f07cb

View File

@@ -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/)
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)
```