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