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

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Sergey "Shnatsel" Davidoff
  • Date: 2014-08-21 14:44:43 UTC
  • Revision ID: shnatsel@gmail.com-20140821144443-yk1ivdp4li3por80
enable zsh completion notifications by default; might break everything if zsh is not yet installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
if [ "$1" = "configure" ]; then
8
8
        update-alternatives --install /usr/bin/x-terminal-emulator \
9
9
        x-terminal-emulator /usr/bin/pantheon-terminal 35
 
10
 
 
11
        # enable process completion notifications under ZSH
 
12
        if ! grep -q 'pantheon-terminal' /etc/zsh/zshrc 2>/dev/null; then
 
13
                echo '
 
14
builtin . /usr/share/pantheon-terminal/enable-zsh-completion-notifications || builtin true
 
15
' >> /etc/zsh/zshrc
 
16
    fi
10
17
fi