aboutsummaryrefslogtreecommitdiff
path: root/kshrc
diff options
context:
space:
mode:
Diffstat (limited to 'kshrc')
-rw-r--r--kshrc8
1 files changed, 6 insertions, 2 deletions
diff --git a/kshrc b/kshrc
index 321dcab..4c42f3a 100644
--- a/kshrc
+++ b/kshrc
@@ -663,9 +663,13 @@ elif [ -n "$KSH_VERSION" ] ; then
set -o emacs
#shellcheck disable=SC2155
- set -A complete_pass -- show find otp grep insert edit generate rm mv cp \
+ [ -r ~/.password-store ] && \
+ set -A complete_pass -- show find otp grep insert edit generate \
+ rm mv cp \
$(showPasswordStore ~/.password-store)
- set -A complete_ssh -- -L -D -A -X $(showsshhosts | awk '{print $1}')
+ [ -r ~/.ssh/config ] && \
+ set -A complete_ssh -- -L -D -A -X \
+ $(showsshhosts | awk '{print $1}')
# if you want PWD
# export PS1='\u@\h \$PWD \$ '