Comments (3)
Feel free to tweak on the script to help with that.
from nu_scripts.
I can try to update the script to use envs
instead of the current envs_dirs
. I'd just like to know how it would be better to work? Some of current options:
- when typing
conda activate
should it try to autocomplete tobase ... .venv
where you can select the.venv
to use the local virtual environment - typing
conda activate
and not selecting anything would check first for any virtual environment in current directory and if not finding anything default tobase
from nu_scripts.
Hey @Tiggax , thanks for taking it on. My workflow is very focused on having all environment specs within a repo. So we check-in the environment.yml and always create the venv/conda env locally within the checked-out repo. Since I normally work with nu, when starting to code, I always have to switch back to CMD just to be able to activate the conda env and work with it. Just as a background.
The activate script should just behave as conda does it. I think they detect if the argument after the activate is a path or a name by looking for separators, e.g. try conda activate .venv (tries to resolve .venv as name) vs. conda activate .venv/ (tries to resolve .venv/ as path). I think that would be the easiest solution... And yes, @fdncred, if my nu shell scripting skills would be better, I would contribute, but I'm literally at 0
from nu_scripts.
Related Issues (20)
- micromamba support
- `use` of `parse-help` throws `nu::parser::expected_keyword` HOT 1
- Performance issues on man completions HOT 5
- How about nushell-completions? HOT 5
- Job.nu script no longer works HOT 2
- nu_conda list should show which environments are activated HOT 1
- Nuscript's for Pacman
- Module `rbenv` can't export command named same as module. HOT 3
- Add a basic level of CI for this repo HOT 3
- winget-completions.nu with problems? HOT 4
- Conda documentation HOT 3
- Admin commands Question HOT 1
- Fix: nushell at 0.88.0 `start` and `end` are deprecated HOT 1
- tokyo-night theme uses tokyo-storm palette HOT 7
- [new script] is dark_mode mac HOT 1
- The direnv hooks are very confusing HOT 1
- `main` branch CI is not working as expected HOT 1
- git branch cleanup returns errors. HOT 4
- PR 816 Broke Anaconda Activation Support on Windows
- 'winget show' errors on specific packages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nu_scripts.