diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2021-09-08 20:06:17 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2021-09-08 20:06:17 -0400 |
| commit | b07669d3c5436f31f83a3796eb3286eb43aae0a7 (patch) | |
| tree | 9f6c1cb58c745b4c544db97cdb31fb70c27be8ee | |
| parent | bebc075ecb76e322409950256de6793e8603f4f4 (diff) | |
| download | dotfiles-b07669d3c5436f31f83a3796eb3286eb43aae0a7.tar.gz dotfiles-b07669d3c5436f31f83a3796eb3286eb43aae0a7.tar.xz | |
Only run the completion scripts if the files/directories are there
| -rw-r--r-- | kshrc | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 \$ ' |
