Fixed zsh completions script breaking $path

Former-commit-id: 7179fd168dd5c5a68854a72efe6a00153b97f1e5
Former-commit-id: 3329e42498daa2a78295bcd8949d8c7281d3575b
This commit is contained in:
2023-03-09 16:24:47 -05:00
parent 902e041f51
commit ed9c69248b
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -4,10 +4,10 @@ _path_gen() {
local sshyp_path="$HOME/.local/share/sshyp"
local glob_status=$(shopt -p globstar)
[ -z "${glob_status##*u*}" ] && shopt -s globstar # if recursive globbing is disabled, enable it
full_paths=("$sshyp_path"/**/*.gpg)
local full_paths=("$sshyp_path"/**/*.gpg)
$glob_status # set recursive globbing to user default
for path in "${full_paths[@]}"; do
trimmed_paths+=("${path:${#sshyp_path}:-4}")
trimmed_paths+=("${path:${#sshyp_path}:-4}")
done
} &&