GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — cuvm/install.sh at main · vs0533/cuvm Expand file tree/ Copy pathinstall.shMore file actions executable file ·31 lines (26 loc) · 925 Bytes / Copy pathinstall.shFile metadata and controlsexecutable file ·31 lines (26 loc) · 925 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 #!/usr/bin/env bash # cuvm installer # 获取项目根目录 PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 检测 shell 类型 if [[ -n "$ZSH_VERSION" ]]; then shell_profile="$HOME/.zshrc" elif [[ -n "$BASH_VERSION" ]]; then shell_profile="$HOME/.bashrc" # 对于 macOS,如果存在 .bash_profile 则使用它 if [[ "$(uname)" == "Darwin" ]] && [[ -f "$HOME/.bash_profile" ]]; then shell_profile="$HOME/.bash_profile" fi else shell_profile="$HOME/.profile" fi # 将 cuvm 添加到 PATH(如果尚未添加) if ! echo "$PATH" | grep -q "$PROJECT_DIR/bin"; then echo "" >> "$shell_profile" echo "# cuvm" >> "$shell_profile" echo "export PATH=\"$PROJECT_DIR/bin:\$PATH\"" >> "$shell_profile" echo "已将 cuvm 添加到 $shell_profile" else echo "cuvm 已经在 $shell_profile 中" fi echo "安装完成。请重启终端或运行 'source $shell_profile' 开始使用 cuvm。" |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |