summary refs log tree commit diff
path: root/Completion/Darwin/Command/_nvram
diff options
context:
space:
mode:
authordana <dana@dana.is>2018-06-13 18:57:23 -0500
committerdana <dana@dana.is>2018-06-13 18:57:23 -0500
commitb6e4cc1a86be43a2d28299e2c83bc3d0904e7336 (patch)
treefe4a14ed7b8f75e0ceb4b0348e1e0f12c1544971 /Completion/Darwin/Command/_nvram
parent2fb6533f04dfd8179897e6d87e22757cf73eeb6b (diff)
downloadzsh-b6e4cc1a86be43a2d28299e2c83bc3d0904e7336.tar.gz
zsh-b6e4cc1a86be43a2d28299e2c83bc3d0904e7336.tar.xz
zsh-b6e4cc1a86be43a2d28299e2c83bc3d0904e7336.zip
42992: Use _call_program to fetch argument possibilities
Diffstat (limited to 'Completion/Darwin/Command/_nvram')
-rw-r--r--Completion/Darwin/Command/_nvram2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Darwin/Command/_nvram b/Completion/Darwin/Command/_nvram
index 8158eb9d2..8853b0bee 100644
--- a/Completion/Darwin/Command/_nvram
+++ b/Completion/Darwin/Command/_nvram
@@ -15,7 +15,7 @@ _arguments -s : \
 && ret=0
 
 [[ $state == variables-* ]] && {
-  tmp=( ${${(f)"$( command $service -p )"}%%[[:space:]]*} )
+  tmp=( ${${(f)"$( _call_program variables $words[1] -p )"}%%[[:space:]]*} )
 
   [[ $state == variables-rw ]] &&
   tmp=( ${^tmp}'::NVRAM variable value' )