mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
nixos/bash: Reset title bar when logging out of remote NixOS system
This fixes an issue where the title bar is permanently clobbered when you SSH into a remote NixOS system and then log out. The solution is to reset the title bar upon logout.
This commit is contained in:
parent
b1bcd7acba
commit
1a01e367f6
1 changed files with 8 additions and 1 deletions
|
@ -112,7 +112,14 @@ in
|
|||
};
|
||||
|
||||
logout = lib.mkOption {
|
||||
default = "";
|
||||
# Reset the title bar when logging out. This protects against a remote
|
||||
# NixOS system clobbering your local terminal's title bar when you SSH
|
||||
# into the remote NixOS system and then log out.
|
||||
#
|
||||
# For more details, see: https://superuser.com/a/339946
|
||||
default = ''
|
||||
printf '\e]0;\a'
|
||||
'';
|
||||
description = ''
|
||||
Shell script code called during login bash shell logout.
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue