diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-10-16 20:58:21 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-10-16 20:58:21 +1300 |
commit | 74b457d9719df8ca810de9cbf964784ccee5b866 (patch) | |
tree | b77c25505788411564ac5aaa9194a22fd781a488 /bash/bashrc.d/pass.bash | |
parent | Add completion for pass(1) (diff) | |
download | dotfiles-74b457d9719df8ca810de9cbf964784ccee5b866.tar.gz dotfiles-74b457d9719df8ca810de9cbf964784ccee5b866.zip |
Check for presence of binaries before script setup
Diffstat (limited to 'bash/bashrc.d/pass.bash')
-rw-r--r-- | bash/bashrc.d/pass.bash | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bash/bashrc.d/pass.bash b/bash/bashrc.d/pass.bash index 05e3032b..2cd25cb9 100644 --- a/bash/bashrc.d/pass.bash +++ b/bash/bashrc.d/pass.bash @@ -1,3 +1,8 @@ +# Bail if no pass(1) +if ! hash pass 2>/dev/null; then + return +fi + # Completion for pass(1), adapted from source package; still needs some tweaking _pass() { |