move automatic screen title to README (.bashrc)
This commit is contained in:
16
README.md
16
README.md
@@ -22,3 +22,19 @@ PS1='[\[\e[38;5;215m\]$?\[\e[0m\]][\[\e[38;5;40m\]\t\[\e[0m\]][\[\e[96m\]\u\[\e[
|
|||||||
```
|
```
|
||||||
|
|
||||||
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)
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user