diff options
| author | ruki <[email protected]> | 2021-08-25 06:34:15 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-25 06:34:15 +0800 |
| commit | a483cecba3feb404388099ccc8bdb32e6382102c (patch) | |
| tree | 4def16435b92dd065fd54bf74ea8de66989e7863 /scripts/get.sh | |
| parent | dbd66858b8b68a784c415557e8958650e3d638c1 (diff) | |
| parent | 65cd1d83d3f61415607b8976e7b5c215b67e42a8 (diff) | |
Merge pull request #1604 from xq114/dev
improve virtualenv on linux
Diffstat (limited to 'scripts/get.sh')
| -rwxr-xr-x | scripts/get.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/get.sh b/scripts/get.sh index 8363b4499..f64ff8041 100755 --- a/scripts/get.sh +++ b/scripts/get.sh @@ -227,13 +227,20 @@ write_profile() install_profile() { if [ ! -d ~/.xmake ]; then mkdir ~/.xmake; fi - echo "export PATH=$prefix/bin:\$PATH" > ~/.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 remote_get_content "$gitrepo_raw/scripts/register-completions.sh" >> ~/.xmake/profile fi + if [ -f "$projectdir/scripts/register-virtualenvs.sh" ]; then + cat "$projectdir/scripts/register-virtualenvs.sh" >> ~/.xmake/profile + else + remote_get_content "$gitrepo_raw/scripts/register-virtualenvs.sh" >> ~/.xmake/profile + fi + if [[ "$SHELL" = */zsh ]]; then write_profile ~/.zshrc elif [[ "$SHELL" = */ksh ]]; then |
