mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
38990: _debbugs_bugnumber: Track bts's data dir migration.
This commit is contained in:
parent
7f052ed3e4
commit
dd6f79759f
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2016-08-05 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 38990: Completion/Debian/Type/_debbugs_bugnumber: Track bts's
|
||||
data dir migration.
|
||||
|
||||
2016-08-04 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||
|
||||
* unposted: Doc/Zsh/zle.yo: fix format
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
#autoload
|
||||
# TODO: use _describe with some basic metadata (e.g., bug title/package/version)
|
||||
[[ $PREFIX$SUFFIX == [0-9]# ]] &&
|
||||
_wanted -x bugnum expl 'bug number' compadd ~/.devscripts_cache/bts/<->.(html|mbox)(N:t:r)
|
||||
|
||||
[[ $PREFIX$SUFFIX == [0-9]# ]] || return 1
|
||||
|
||||
# The cache directory moved; try both locations.
|
||||
# ### TODO: Use 'bts listcachedbugs'?
|
||||
local -a cachedirs=( ~/.devscripts_cache/bts ~/.cache/devscripts/bts )
|
||||
_wanted -x bugnum expl 'bug number' compadd -- $^cachedirs/<->.(html|mbox)(N:t:r)
|
||||
|
|
Loading…
Reference in a new issue