~ubuntu-core-dev/command-not-found/ubuntu

« back to all changes in this revision

Viewing changes to zsh_command_not_found

  • Committer: Michael Vogt
  • Date: 2015-07-20 13:08:23 UTC
  • Revision ID: michael.vogt@ubuntu.com-20150720130823-6amjifmzgjt8xqoo
merge /etc/zsh_command_not_found: from Carsten Hey

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
# installation of packages available from the repository
6
6
 
7
7
if [[ -x /usr/lib/command-not-found ]] ; then
8
 
        function command_not_found_handler() {
9
 
                /usr/lib/command-not-found --no-failure-msg -- $1
10
 
        }
 
8
        if (( ! ${+functions[command_not_found_handler]} )) ; then
 
9
                function command_not_found_handler {
 
10
                        [[ -x /usr/lib/command-not-found ]] || return 1
 
11
                        /usr/lib/command-not-found --no-failure-msg -- ${1+"$1"} && :
 
12
                }
 
13
        fi
11
14
fi