This project provides a robust set of Zsh shell functions and aliases to streamline the management of Conda environments. The suite enables fast creation, activation, deletion, listing, resetting, purging, and upgrading of Conda environments directly from your terminal, with user-friendly flags and confirmations.
- Create, activate, delete, and list Conda environments
- Reset, recreate, and purge environments with single commands
- Upgrade all packages in an environment
- Aliases for rapid access
- Help and force flags for safe, flexible operations
-
Prerequisites
-
Setup
- Copy or symlink
helpers/zsh/zsh_aliasesinto your shell configuration directory (e.g.,~/.zshrc.d/). - Add the following line to your
.zshrc:source /path/to/helpers/zsh/zsh_aliases - Restart your terminal or reload your Zsh configuration:
source ~/.zshrc
- Copy or symlink
All commands support -h/--help for usage info and -f/--force to skip confirmation prompts (where applicable).
cc_create myenv
cc_mk myenv
cc_create .Creates a new Conda environment named myenv (or current directory name with .).
cc_activate myenv
cc_ac myenv
cc_activate .Activates the specified environment.
cc_delete myenv
cc_rm myenv
cc_delete -f myenvDeletes the specified environment. Use -f to skip confirmation.
cc_list
cc_lsLists all Conda environments.
cc_base
cc_bActivates the base Conda environment.
cc_reset myenv
cc_rs myenvcc_recreate myenv
cc_rc myenvcc_recreate_activate myenv
cc_rca myenvcc_create_activate myenvcc_purge
cc_p
cc_purge -fcc_upgrade myenv
cc_up myenv
cc_upgrade -f myenvcc_about| Platform | Shell | Conda Version | Python Version | Dependencies |
|---|---|---|---|---|
| Linux | Zsh | >=4.7 | >=3.6 | Miniconda/Anaconda |
| macOS | Zsh | >=4.7 | >=3.6 | Miniconda/Anaconda |
| Windows (WSL) | Zsh | >=4.7 | >=3.6 | Miniconda/Anaconda |
- Not tested on native Windows CMD/Powershell.
- Requires Zsh and Conda to be installed and available in
$PATH.
MIT License