From be48883c91aec758e4b7d87834b5d9ff10646fbc Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Sun, 6 Dec 2015 10:49:48 +0100 Subject: load bash completions scripts for pmount and youtube-dl --- zshrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/zshrc b/zshrc index 1c5b069..68313ce 100644 --- a/zshrc +++ b/zshrc @@ -202,3 +202,14 @@ export EMAIL="sre@ring0.de" export DEBEMAIL="sre@debian.org" export DEBSIGN_MAINT="sre@debian.org" export DEBCHANGE_RELEASE_HEURISTIC=changelog + +# bash completion scripts +have() +{ + unset -v have + PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin type $1 &>/dev/null && + have="yes" +} + +source /etc/bash_completion.d/pmount +source /etc/bash_completion.d/youtube-dl.bash-completion -- cgit v1.2.3