Skip to content

Instantly share code, notes, and snippets.

View smetroid's full-sized avatar

EnriqueC smetroid

View GitHub Profile
@smetroid
smetroid / test1.py
Last active January 17, 2024 06:19
test1 python main screen
main():
print("hello world")
if function == "__main":
main()
@smetroid
smetroid / activatevenv.plugin.README.md
Created February 7, 2024 22:38 — forked from kishannareshpal/activatevenv.plugin.README.md
Automatically activate python virtual environment when changing directory. In other words, it does `source ./venv/bin/activate` for you!

This is a custom shell script I wrote in order to ease my workflow when dealing with Python Virtual Environments.

Installation

Download the activatevenv.plugin.sh into your computer.

oh-my-zsh

  1. Download the script into $ZSH_CUSTOM/plugins/<plugin_name>/activatevenv/. See oh-my-zsh Plugin Customization Wiki
  # Use curl or download manually from https://git.io/JLBHr
  (mkdir activatevenv; cd activatevenv) && curl -L --url https://git.io/JLBHr --output ./activatevenv/activatevenv.plugin.zsh