Compare commits

...

3 Commits

Author SHA1 Message Date
cono 3033bb440d
Merge f25edf653f into 7a3695aadf 2025-01-13 12:47:59 +02:00
Michele Bologna 7a3695aadf
fix(grc): add linuxbrew path (#12903) 2025-01-12 14:25:00 +01:00
cono f25edf653f screen.plugin: Respect DISABLE_AUTO_TITLE variable as in core OMZ 2018-01-02 03:36:16 +02:00
2 changed files with 7 additions and 3 deletions

View File

@ -5,6 +5,7 @@ files=(
/etc/grc.zsh # default /etc/grc.zsh # default
/usr/local/etc/grc.zsh # homebrew darwin-x64 /usr/local/etc/grc.zsh # homebrew darwin-x64
/opt/homebrew/etc/grc.zsh # homebrew darwin-arm64 /opt/homebrew/etc/grc.zsh # homebrew darwin-arm64
/home/linuxbrew/.linuxbrew/etc/grc.zsh # linuxbrew
/usr/share/grc/grc.zsh # Gentoo Linux (app-misc/grc) /usr/share/grc/grc.zsh # Gentoo Linux (app-misc/grc)
) )

View File

@ -34,11 +34,14 @@ if [[ "$TERM" == screen* ]]; then
# tell GNU screen what the tab window title ($1) and the hardstatus($2) should be # tell GNU screen what the tab window title ($1) and the hardstatus($2) should be
function screen_set() function screen_set()
{ {
# set the tab window title (%t) for screen
print -nR $'\033k'$1$'\033'\\\
# set hardstatus of tab window (%h) for screen # set hardstatus of tab window (%h) for screen
print -nR $'\033]0;'$2$'\a' print -nR $'\033]0;'$2$'\a'
if [[ "$DISABLE_AUTO_TITLE" == true ]]; then
return
fi
# set the tab window title (%t) for screen
print -nR $'\033k'$1$'\033'\\\
} }
# called by zsh before executing a command # called by zsh before executing a command
function preexec() function preexec()