Skip to content

Commit

Permalink
Fix completion for >=zsh-5.3. Move files to subdirectories
Browse files Browse the repository at this point in the history
  • Loading branch information
vaeth committed Jan 7, 2017
1 parent 8e4a083 commit ffb60f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ emerge --unmerge `world -2 test`

For more details, see the output of "world help".

For installation, copy world with executable permission in your path.
To obtain support for zsh completion, you can copy _world to a
For installation, copy bin/* with executable permission in your path.
To obtain support for zsh completion, you can copy zsh/* to a
directory of zsh's $fpath
There is also an ebuild in the mv overlay (which is available by layman).
File renamed without changes.
5 changes: 2 additions & 3 deletions _world → zsh/_world
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _arguments -s -S -A '-*' : \
'1:command:->cmds'
local ret=$?
case $state in
cmds)
(cmds)
local cmds
cmds=(
'save:save world/world_sets files to backups'
Expand All @@ -37,7 +37,6 @@ cmds)
'savedsets:print world_sets (without packages) from backup'
'help:print help'
)
_describe -t commands 'command' cmds
ret=$?;;
_describe -t commands 'command' cmds && ret=0;;
esac
return ret

0 comments on commit ffb60f7

Please sign in to comment.