badwitch/venv.sh

15 lines
285 B
Bash
Raw Normal View History

2020-01-17 22:15:58 -06:00
#! /bin/sh
#
# venv.sh
# Copyright (C) 2020 Vintage Salt <rehashedsalt@cock.li>
#
# Distributed under terms of the MIT license.
#
2020-03-03 18:39:04 -06:00
[ -d ./venv ] || python3 -m venv venv
2020-01-17 22:15:58 -06:00
[ -r ./venv/bin/activate ] || exit 1
. ./venv/bin/activate
printf "Spawned a terminal within the venv\n"
exec bash