mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-09-05 08:37:20 -04:00
Do not trim file extensions from entries (file extensions are no longer expected)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#compdef mutn
|
||||
|
||||
mutn_path="$HOME/.local/share/libmutton"
|
||||
full_paths=("$mutn_path"/**/*.gpg)
|
||||
full_paths=("$mutn_path"/**/*)
|
||||
trimmed_paths=()
|
||||
for scan_path in "${full_paths[@]}"; do
|
||||
trimmed_paths+=("${${scan_path#$mutn_path}%????}")
|
||||
trimmed_paths+=("${scan_path#$mutn_path}")
|
||||
done
|
||||
[[ -z $trimmed_paths ]] && trimmed_paths=(help)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user