LINUX.ORG.RU

gnome-terminal && ssh

 ,


0

1

После закрытии ssh сессии в заголовке остается user@host.
Когда юзал bash с дефолтными настройками ubuntu, то заголовок очищался. После перехода на zsh перестал.
Поделитесь рецептом пожалуйста.

★★★★

Поделитесь рецептом

bash

CHIPOK ★★★
()

Вроде нашел:

precmd() { print -Pn "\e]0;%n@%m: %~\a" }
zsh provides some functions and expansions, which we will use:

precmd ()   a function which is executed just before each prompt
chpwd ()    a function which is executed whenever the directory is changed
\e          escape sequence for escape (ESC)
\a          escape sequence for bell (BEL)
%n          expands to $USERNAME
%m          expands to hostname up to first '.'
%~          expands to directory, replacing $HOME with '~'

FIL ★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.