Created
October 11, 2019 08:06
-
-
Save mgershovitz/459e532d3b2c38e1a069947d575b8414 to your computer and use it in GitHub Desktop.
Project env switch function complete with completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function repo { | |
source ~/virtual_envs/$1/bin/activate; | |
cd ~/git_repositories/$1 | |
} | |
function _repo { | |
_arguments "1: :($(ls ~/git_repositories))" | |
} | |
compdef _repo repo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment