使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
isprogram
/
pyenv-virtualenv
镜像自地址
https://github.com/pyenv/pyenv-virtualenv.git
关注
1
点赞
0
派生
0
代码
工单
0
项目
0
版本发布
42
百科
动态
浏览代码
Merge pull request
#23
from fgimian/fish-activation-fix
Repaired virtualenv activation and deactivation for the fish shell
pull/24/head
Yamashita, Yuu
10 年前
父节点
3f5171e2fc
21a8745bcf
当前提交
b9e2fc6acb
共有
4 个文件被更改
,包括
6 次插入
和
6 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+1
-1
bin/pyenv-sh-activate
+1
-1
bin/pyenv-sh-deactivate
+3
-3
test/activate.bats
+1
-1
test/deactivate.bats
+ 1
- 1
bin/pyenv-sh-activate
查看文件
@ -41,7 +41,7 @@ fi
pyenv-virtualenv-prefix "${versions}" 1>/dev/null
echo "pyenv shell \"${versions}\""
echo "pyenv shell \"${versions}\"
;
"
case "$shell" in
fish ) echo ". \"$(pyenv-prefix "${versions}")/bin/activate.fish\"" ;;
* ) echo "source \"$(pyenv-prefix "${versions}")/bin/activate\"" ;;
+ 1
- 1
bin/pyenv-sh-deactivate
查看文件
@ -11,7 +11,7 @@ set -e
shell="$(basename "${PYENV_SHELL:-$SHELL}")"
case "$shell" in
fish ) echo "functions -q deactivate; and deactivate";;
fish ) echo "functions -q deactivate; and deactivate
;
";;
* ) echo "declare -f deactivate 1>/dev/null 2>&1 && deactivate";;
esac
echo "pyenv shell --unset"
+ 3
- 3
test/activate.bats
查看文件
@ -19,7 +19,7 @@ setup() {
assert_success
assert_output <<EOS
pyenv shell "venv"
pyenv shell "venv"
;
source "${PYENV_ROOT}/versions/venv/bin/activate"
EOS
}
@ -37,7 +37,7 @@ EOS
assert_success
assert_output <<EOS
pyenv shell "venv"
pyenv shell "venv"
;
. "${PYENV_ROOT}/versions/venv/bin/activate.fish"
EOS
}
@ -53,7 +53,7 @@ EOS
assert_success
assert_output <<EOS
pyenv shell "venv27"
pyenv shell "venv27"
;
source "${PYENV_ROOT}/versions/venv27/bin/activate"
EOS
}
+ 1
- 1
test/deactivate.bats
查看文件
@ -21,7 +21,7 @@ EOS
assert_success
assert_output <<EOS
functions -q deactivate; and deactivate
functions -q deactivate; and deactivate
;
pyenv shell --unset
EOS
}
撰写
预览
正在加载...
取消
保存