4337 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
  • thumbnail
    Auto activate and deactivate python venv using zsh - DEV Community
    python_venv() {
      MYVENV=./venv
      # when you cd into a folder that contains $MYVENV
      [[ -d $MYVENV ]] && source $MYVENV/bin/activate > /dev/null 2>&1
      # when you cd into a folder that doesn't
      [[ ! -d $MYVENV ]] && deactivate > /dev/null 2>&1
    }
    autoload -U add-zsh-hook
    add-zsh-hook chpwd python_venv
    May 20, 2022 at 1:59:01 PM GMT+2 * - permalink - archive.org - https://dev.to/moniquelive/auto-activate-and-deactivate-python-venv-using-zsh-4dlm
    python venv zsh
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation