mirror of
https://github.com/xxh/xxh
synced 2025-02-17 12:58:27 +00:00
14 lines
No EOL
531 B
Bash
Executable file
14 lines
No EOL
531 B
Bash
Executable file
#
|
|
# This entrypoint is to allow xxh getting current environment variables
|
|
# and pass some of them to xxh session to seamless transition to host.
|
|
#
|
|
# Usage in zsh: source xxh.zsh [ordinary xxh arguments]
|
|
#
|
|
d=`declare -p 2>/dev/null`
|
|
if [ ! $d ]; then
|
|
echo "\nThis entrypoint is to allow xxh getting current environment variables"
|
|
echo "and pass some of them to xxh session to seamless transition to host.\n"
|
|
echo "Usage in zsh: source xxh.zsh [ordinary xxh arguments]\n"
|
|
else
|
|
XXH_SH_ENV=$d xxh +E +s xxh-shell-zsh "$@"
|
|
fi |