diff --git a/debian/changelog b/debian/changelog index c9677107..1456b733 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,8 +11,10 @@ screen-profiles (1.52) unreleased; urgency=low windows otherwise as this breaks F5-refresh, LP: #368786 * screen-profiles: ensure that all registered keybindings get updated if the user changes their escape sequence, LP: #368937 + * screen-launcher-install, screen-launcher-uninstall: support + screen-by-default installation for zsh users, LP: #368960 - -- Dustin Kirkland Wed, 29 Apr 2009 02:10:39 -0500 + -- Dustin Kirkland Wed, 29 Apr 2009 02:28:48 -0500 screen-profiles (1.51-0ubuntu1) karmic; urgency=low diff --git a/screen-launcher-install b/screen-launcher-install index 37f195af..9e822aa6 100755 --- a/screen-launcher-install +++ b/screen-launcher-install @@ -33,6 +33,11 @@ install_screen_launcher() { # Install in $HOME/.profile unconditionally install_screen_launcher "$HOME/.profile" +# Install in zprofile if default shell is zsh +if grep -qs "^$USER:.*zsh$" /etc/passwd; then + install_screen_launcher "$HOME/.zprofile" +fi + # Now, install in any shell-specific profiles, if they exist # This list may grow to support other shells for i in ".bash_profile" ".bash_login"; do diff --git a/screen-launcher-uninstall b/screen-launcher-uninstall index 8307f7b5..1f04d8cd 100755 --- a/screen-launcher-uninstall +++ b/screen-launcher-uninstall @@ -26,6 +26,6 @@ remove_screen_launcher() { fi } -for i in ".profile" ".bashrc" ".bash_profile"; do +for i in ".profile" ".bashrc" ".bash_profile" ".zprofile"; do remove_screen_launcher "$HOME/$i" done