xonsh in venv
This commit is contained in:
parent
26d7c9fc0e
commit
7c2647aa1a
|
@ -129,6 +129,9 @@ function symlink_config_files () {
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_pip_dependencies () {
|
function install_pip_dependencies () {
|
||||||
|
mkdir -p ~/virtual_envs
|
||||||
|
python3 -m venv ~/virtual_envs/base
|
||||||
|
source ~/virtual_envs/base/bin/activate
|
||||||
for dep in $DEPENDENCIES_PIP; do
|
for dep in $DEPENDENCIES_PIP; do
|
||||||
pip3 install --upgrade "$dep" > $LOG && echo "installed $dep"
|
pip3 install --upgrade "$dep" > $LOG && echo "installed $dep"
|
||||||
done
|
done
|
||||||
|
@ -138,6 +141,7 @@ function install_pip_dependencies () {
|
||||||
function change_shell () {
|
function change_shell () {
|
||||||
local path=$(which xonsh)
|
local path=$(which xonsh)
|
||||||
echo $path
|
echo $path
|
||||||
|
path=~/virtual_envs/base/bin/xonsh
|
||||||
if ! [[ -z $path ]]; then
|
if ! [[ -z $path ]]; then
|
||||||
if [[ -z "$(grep xonsh /etc/shells)" ]]; then
|
if [[ -z "$(grep xonsh /etc/shells)" ]]; then
|
||||||
echo "$path" | sudo tee -a /etc/shells
|
echo "$path" | sudo tee -a /etc/shells
|
||||||
|
|
Loading…
Reference in New Issue