summaryrefslogtreecommitdiffstats
path: root/zshrc
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2015-12-06 10:49:48 +0100
committerSebastian Reichel <sre@ring0.de>2015-12-06 10:49:48 +0100
commitbe48883c91aec758e4b7d87834b5d9ff10646fbc (patch)
tree3dccce2aa8d9e45e66e274245cbf829c9e453ae8 /zshrc
parent19a1c63566b2e9800ebe06ee47deecb21db8d652 (diff)
downloadzsh-config-be48883c91aec758e4b7d87834b5d9ff10646fbc.tar.bz2
load bash completions scripts for pmount and youtube-dl
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc11
1 files changed, 11 insertions, 0 deletions
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