summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorSun Lihong <lihongx.sun@intel.com>2013-09-12 21:36:09 +0800
committerGerrit Code Review <gerrit2@otctools.jf.intel.com>2013-09-24 21:09:33 -0700
commit8e5d989fe1060dda75e1b04337369f2124a0a096 (patch)
treec1680a658f4cbe9e74b84ae4fd8e2f7031000c17 /packaging
parent11afcd70d7d27355b7909da3836d670e21a031e8 (diff)
downloadmic-8e5d989fe1060dda75e1b04337369f2124a0a096.tar.gz
mic-8e5d989fe1060dda75e1b04337369f2124a0a096.tar.bz2
mic-8e5d989fe1060dda75e1b04337369f2124a0a096.zip
Add mic zsh tab completion support
Fixes: #1187 Change-Id: I6a668990556431c5df8304a830a12943cef975a0
Diffstat (limited to 'packaging')
-rw-r--r--packaging/mic.spec8
1 files changed, 6 insertions, 2 deletions
diff --git a/packaging/mic.spec b/packaging/mic.spec
index f7f6e70..f756262 100644
--- a/packaging/mic.spec
+++ b/packaging/mic.spec
@@ -108,6 +108,10 @@ install -m644 doc/mic.1 %{buildroot}/%{_prefix}/share/man/man1
install -d -m0755 %{buildroot}/%{_sysconfdir}/bash_completion.d/
install -Dp -m0755 etc/%{name}.bash %{buildroot}/%{_sysconfdir}/bash_completion.d/%{name}.sh
+# install zsh completion
+install -d -m0755 %{buildroot}/%{_sysconfdir}/zsh_completion.d/
+install -Dp -m0755 etc/_%{name} %{buildroot}/%{_sysconfdir}/zsh_completion.d/_%{name}
+
%files
%defattr(-,root,root,-)
%doc doc/*
@@ -121,5 +125,5 @@ install -Dp -m0755 etc/%{name}.bash %{buildroot}/%{_sysconfdir}/bash_completion.
%dir %{_prefix}/lib/%{name}
%{_prefix}/lib/%{name}/*
%{_bindir}/*
-%config %{_sysconfdir}/bash_completion.d/*
-
+%{_sysconfdir}/bash_completion.d
+%{_sysconfdir}/zsh_completion.d