diff options
| author | xq114 <[email protected]> | 2021-08-24 19:57:35 +0800 |
|---|---|---|
| committer | xq114 <[email protected]> | 2021-08-24 19:57:35 +0800 |
| commit | a21ec09a71f0e4c60957b37eb61e33f1a4ae6e86 (patch) | |
| tree | ed1bcc557207e8b9bafc3622aad07e26c5e16ab9 /scripts/get.sh | |
| parent | a1e286a66cf7e9df8ec1cad9316386d7f2a75b33 (diff) | |
improve virtualenv on linux
Diffstat (limited to 'scripts/get.sh')
| -rwxr-xr-x | scripts/get.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/get.sh b/scripts/get.sh index 8363b4499..21814e45e 100755 --- a/scripts/get.sh +++ b/scripts/get.sh @@ -227,13 +227,19 @@ 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 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 |
