Crates.io | saucy |
lib.rs | saucy |
version | 0.1.3 |
source | src |
created_at | 2019-11-15 21:45:26.195969 |
updated_at | 2019-11-22 08:32:49.829596 |
description | A helper tool for finding Python virtual environments. |
homepage | |
repository | https://github.com/dcchut/saucy |
max_upload_size | |
id | 181647 |
size | 27,862 |
saucy is a helper tool for finding Python virtual environments.
Tired of writing:
user@server:~/important_project/> . env/bin/activate
(env) user@server:~/important_project/> .
all the time? Wouldn't it be easier if you didn't have to type env/bin/activate
all the time?
In comes saucy. To install saucy, run:
cargo install saucy
When you run saucy in a directory, it will print out the activate
script of the first Python virtual environment it finds. For example:
user@server:~/important_project/> saucy
/home/user/important_project/env/bin/activate
Thus instead of having to type . env/bin/activate
, you could just type:
user@server:~/important_project/> . $(saucy)
(env) user@server:~/important_project/>
But even that feels like too much typing. Instead, insert
the following line (or something similar) into your .bash_aliases
file:
alias sa=". $(saucy)$"
Now it's as easy as:
user@server:~/important_project/> sa
(env) user@server:~/important_project/>
Enjoy!
Licensed under either of