File tree Expand file tree Collapse file tree 2 files changed +47
-1
lines changed Expand file tree Collapse file tree 2 files changed +47
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,12 @@ A powerful CLI tool for managing Python virtual environments with ease.
1212- Clean cache and temporary files
1313- Smart environment activation
1414
15- ## Installation 🚀
15+ ## One command install 🚀
16+ ``` bash
17+ curl -sSL https://raw.githubusercontent.com/jacopobonomi/venv_manager/main/install.sh | bash
18+ ```
19+
20+ ## Installation
1621
1722``` bash
1823# Clone repository
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+
4+ # Colors
5+ GREEN=' \033[0;32m'
6+ RESET=' \033[0m'
7+
8+ echo -e " ${GREEN} Installing venv-manager...${RESET} "
9+
10+ # Get latest release
11+ LATEST_RELEASE=$( curl -s https://api.github.com/repos/jacopobonomi/venv_manager/releases/latest | grep " tag_name" | cut -d ' "' -f 4)
12+
13+ echo -e " ${GREEN} Downloading venv-manager ${LATEST_RELEASE} ...${RESET} "
14+
15+ OS=$( uname -s | tr ' [:upper:]' ' [:lower:]' )
16+ ARCH=$( uname -m)
17+
18+ case $ARCH in
19+ x86_64) ARCH=" amd64" ;;
20+ aarch64) ARCH=" arm64" ;;
21+ arm64) ARCH=" arm64" ;;
22+ esac
23+
24+ BINARY=" venv-manager"
25+ if [ " $OS " = " darwin" ]; then
26+ BINARY=" venv-manager-darwin"
27+ [ " $ARCH " = " arm64" ] && BINARY=" venv-manager-darwin-arm64"
28+ elif [ " $OS " = " windows" ]; then
29+ BINARY=" venv-manager.exe"
30+ elif [ " $ARCH " = " arm64" ]; then
31+ BINARY=" venv-manager-arm64"
32+ fi
33+
34+ # Download correct binary
35+ LATEST_RELEASE=$( curl -s https://api.github.com/repos/jacopobonomi/venv_manager/releases/latest | grep " tag_name" | cut -d ' "' -f 4)
36+ curl -Lo venv-manager " https://github.com/jacopobonomi/venv_manager/releases/download/${LATEST_RELEASE} /${BINARY} "
37+ # Make executable and move to /usr/local/bin
38+ chmod +x venv-manager
39+ sudo mv venv-manager /usr/local/bin/
40+
41+ echo -e " ${GREEN} ✨ venv-manager installed successfully!${RESET} "
You can’t perform that action at this time.
0 commit comments