~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to contrib/bash/bzr.simple

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-07-11 16:28:42 UTC
  • mfrom: (2598.2.1 simple_no_split)
  • Revision ID: pqm@pqm.ubuntu.com-20070711162842-8fx9cc0c3ogyxudl
(John Arbash Meinel) Simple fix to avoid a .split('/') when we don't need it

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
_bzr_commands() 
8
8
{
9
 
     bzr help commands | grep '^   '
 
9
     bzr help commands | sed -r 's/^([-[:alnum:]]*).*/\1/' | grep '^[[:alnum:]]' 
10
10
}
11
11
 
12
12
_bzr() 
24
24
    fi 
25
25
}
26
26
 
27
 
complete -F _bzr bzr
 
27
complete -F _bzr -o default bzr
28
28