diff options
| author | xq114 <[email protected]> | 2021-08-24 21:11:47 +0800 |
|---|---|---|
| committer | xq114 <[email protected]> | 2021-08-24 21:11:47 +0800 |
| commit | e273de15d253d4dc1b904e4fa0da5fb1bbe57304 (patch) | |
| tree | fa4b6a851804245e4a69bdefcc1c85d96689fca7 /scripts | |
| parent | a21ec09a71f0e4c60957b37eb61e33f1a4ae6e86 (diff) | |
move PATH setting to toplevel
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/get.sh | 3 | ||||
| -rwxr-xr-x | scripts/register-completions.sh | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/scripts/get.sh b/scripts/get.sh index 21814e45e..060ee4e20 100755 --- a/scripts/get.sh +++ b/scripts/get.sh @@ -227,7 +227,8 @@ write_profile() install_profile() { if [ ! -d ~/.xmake ]; then mkdir ~/.xmake; fi - echo "export XMAKE_ROOTDIR=$prefix/bin" > ~/.xmake/profile + echo "export XMAKE_ROOTDIR=\"$prefix/bin\"" > ~/.xmake/profile + echo "export PATH=\"${XMAKE_ROOTDIR}:$PATH\"" >> ~/.xmake/profile if [ -f "$projectdir/scripts/register-completions.sh" ]; then cat "$projectdir/scripts/register-completions.sh" >> ~/.xmake/profile else diff --git a/scripts/register-completions.sh b/scripts/register-completions.sh index c93cfb15e..e274605b2 100755 --- a/scripts/register-completions.sh +++ b/scripts/register-completions.sh @@ -1,8 +1,6 @@ # parameter completions for *nix shell -export PATH=${XMAKE_ROOTDIR}:$PATH - if [[ "$SHELL" = */zsh ]]; then # zsh parameter completion for xmake _xmake_zsh_complete() |
