move automatic screen title to README (.bashrc)
This commit is contained in:
18
README.md
18
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/)
|
||||
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