Skip to content

Commit

Permalink
Added support for zsh in export.sh script (#2340)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesschaefer authored Jun 22, 2021
1 parent 0a7d0f8 commit fbf8caa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Tools/export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@
#

if [ -z "$SMING_HOME" ]; then
export SMING_HOME=$(readlink -m $BASH_SOURCE/../../Sming)
if [ $(basename $SHELL) = "zsh" ]; then
_SOURCE=${(%):-%N}
else
_SOURCE=$BASH_SOURCE
fi
export SMING_HOME=$(readlink -m $_SOURCE/../../Sming)
fi

# Common
Expand Down

0 comments on commit fbf8caa

Please sign in to comment.