~elementary-os/pantheon-terminal/deb-packaging-zsh-enabled

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -e

set -e

#DEBHELPER#

if [ "$1" = "configure" ]; then
	update-alternatives --install /usr/bin/x-terminal-emulator \
	x-terminal-emulator /usr/bin/pantheon-terminal 35

	# enable process completion notifications under ZSH
	if ! grep -q 'pantheon-terminal' /etc/zsh/zshrc 2>/dev/null; then
		echo '
builtin . /usr/share/pantheon-terminal/enable-zsh-completion-notifications || builtin true
' >> /etc/zsh/zshrc
    fi
fi