Code Monkey home page Code Monkey logo

env-starter's Introduction

env-starter

快速替换 *nix 系统包管理镜像源和各种一键配环境的万金油脚本,傻瓜式操作,目前处于自用阶段,可大幅减少配环境、换源、装插件的工作量,可自行 fork 或根据自己需要修改。

使用

# 直接运行方式 1 (国内服务器克隆仓库)
bash -c "$(curl -fsSL https://api.zhamao.xin/tools/env.sh)"

# 直接运行方式 2 (GitHub Pages)
bash -c "$(curl -fsSL http://env.crazywhale.cn/env.sh)"

# 下载方式 3 (因为 githubusercontent 被墙了,所以只能这么下)
git clone https://github.com/crazywhalecc/env-starter.git && cd env-starter && chmod +x env.sh && ./env.sh

然后根据提示直接使用即可。

目前有的功能

  • Linux 发行版的包管理一键替换清华源
  • macOS Homebrew 一键从国内清华源安装和替换仓库地址
  • 一键安装 zsh + oh-my-zsh 并添加插件 z sudo 和下载 zsh-autosuggestions 自动补全
  • 在线运行 neofetch 查看系统信息
  • 一键安装 pyenv 并配置 PATH 等操作
  • 一键安装 LNMP 或其中的一项或几项,可手动选安装套件
  • Hack Things (自动安装自用的一些渗透工具集)
  • macOS Things (自用的一些 macOS 终端配置)
  • 反向操作 (如恢复 Linux 发行版的包管理源和卸载 oh-my-zsh 等)

包管理替换支持的发行版

  • Ubuntu 12.04 ~ 20.04 (x86_64 / aarch64)
  • Kali (x86_64)
  • Termux (with Android)
  • CentOS
  • Pop!_OS
  • Debian
  • Raspbian
  • Arch Linux
  • Alpine
  • Deepin

支持功能表

Linux (含 WSL) macOS MINGW Cygwin
替换包管理的源为国内
安装zsh和oh-my-zsh并替换主题
在线运行neofetch
安装Homebrew并替换为国内源
更换主题

⚡:此类型系统下部分版本可用,✅:此系统下可用,❌:此系统下不可用,在菜单中不会显示

特色(虽然没啥用)

  • Ubuntu 包管理替换时检测如果系统是阿里云或腾讯云的镜像则询问用户是否替换
  • 支持 termux 环境
  • 使用方向键快速选择,比较酷炫(感谢 @kahkhang 开发的 Inquirer.sh

效果

env-starter's People

Contributors

crazywhalecc avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.