load complete-alias on bash only

but make it zsh code compatible in case you want to try and load it on zsh
This commit is contained in:
Lockszmith (cs-dbg@VAST) 2025-06-05 19:47:40 +00:00
parent cf04e67425
commit 10caf105be
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#!/usr/bin/env -S bash -c 'echo "Not a user script. source(aka .) only"'
if [ -f "$SZ_ENV_ROOT/lib/complete-alias" ]; then
source <(sed -Ee 's/\(\( "\$COMPAL_AUTO_UNMASK"/(( \${COMPAL_AUTO_UNMASK:-0}/g' "$SZ_ENV_ROOT/lib/complete-alias") --noattach
fi
if [[ -n "${DBG}" && -n "$( command -v _complete_alias )" ]]; then
echo "complete-alias will be loaded."
fi
# vim: set ft=sh expandtab tabstop=4 shiftwidth=4: