diff options
author | Sebastian Reichel <sre@ring0.de> | 2015-12-06 10:49:48 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2015-12-06 10:49:48 +0100 |
commit | be48883c91aec758e4b7d87834b5d9ff10646fbc (patch) | |
tree | 3dccce2aa8d9e45e66e274245cbf829c9e453ae8 | |
parent | 19a1c63566b2e9800ebe06ee47deecb21db8d652 (diff) | |
download | zsh-config-be48883c91aec758e4b7d87834b5d9ff10646fbc.tar.bz2 |
load bash completions scripts for pmount and youtube-dl
-rw-r--r-- | zshrc | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |