mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 13:33:52 +01:00
make nslookup function more like real nslookup (11277)
This commit is contained in:
parent
a65e197d2a
commit
2512681578
@ -1,3 +1,8 @@
|
||||
2000-05-09 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* 11277: Functions/Misc/nslookup: make nslookup function more like
|
||||
real nslookup
|
||||
|
||||
2000-05-09 Tanaka Akira <akr@zsh.org>
|
||||
|
||||
* 11276: fix build on OpenBSD.
|
||||
|
@ -1,6 +1,11 @@
|
||||
# Simple wrapper function for `nslookup'. With completion if you are using
|
||||
# the function based completion system.
|
||||
|
||||
if [[ $argv[(I)-] -eq 0 && $argv[(I)[^-]*] -ne 0 ]]; then
|
||||
command nslookup "$@"
|
||||
return
|
||||
fi
|
||||
|
||||
setopt localoptions localtraps completealiases
|
||||
|
||||
local tmp line compcontext=nslookup curcontext='nslookup:::' pmpt
|
||||
@ -19,7 +24,7 @@ zstyle -s ':nslookup' pager tmp &&
|
||||
[[ -z "$pager" ]] && pager="${opager:-more}"
|
||||
(( $#pmpt )) || pmpt=(-p '> ')
|
||||
|
||||
zpty nslookup nslookup
|
||||
zpty nslookup nslookup "$@"
|
||||
|
||||
zpty -r nslookup line '*
|
||||
> '
|
||||
|
Loading…
Reference in New Issue
Block a user