Skip to content

Instantly share code, notes, and snippets.

@sebastian-berlin-wmse
sebastian-berlin-wmse / venv
Last active May 30, 2024 15:18
Setup and run venv
#! /usr/bin/env bash
# Add the following to .bashrc to make this work:
# alias venv=". venv"
source .venv/bin/activate && return 0
read -p "Create venv in .venv/? [y/N] " -r
if [[ $REPLY =~ ^[Yy]$ ]]
then