mirror of
https://github.com/xxh/xxh
synced 2024-11-23 20:33:08 +00:00
0.5.4
This commit is contained in:
parent
8ca233a92b
commit
cdb3860cc5
1 changed files with 8 additions and 2 deletions
10
xxh.zsh
10
xxh.zsh
|
@ -1,8 +1,14 @@
|
|||
#
|
||||
# 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.\n"
|
||||
echo "Usage in zsh: source xxh.sh [ordinary xxh arguments]\n"
|
||||
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
|
Loading…
Reference in a new issue