/Ubuntu-Frontend-Setup

A shell to configure a frontend development environment from a just installed Linux (temporarily Ubuntu only) from scratch. ubuntu 前端开发环境一键安装脚本

Primary LanguageShell

frontend-dev-env-setup

English | 简体中文

frontend dev env setup aims to provide a conveniently way to configure a frontend development environment from a just installed Linux (temporarily Ubuntu only) from scratch.

It contains features following:

  • apt Tsinghua mirror
  • zh-hans
  • git
    • several git alias that I usually use
  • curl and wget
  • zsh
    • oh-my-zsh
    • Set as default shell.
  • nvm
    • Nodejs 16
    • nvm hook to change node version automatically if there is a .nvmrc
  • nrm
    • Using taobao mirror defaultly.
  • python2.7(to make node-sass compatible)(please move to sass or sass-embeded instead of node-sass because of less of officail support)
    • python symbol link reffered to python2.7
  • vim
  • yarn
  • pnpm
Table of Contents

Getting Started

Prerequisites

  • a just installed Ubuntu ( temporarily ) or already in used
  • amd64/x84_64 or aarch64(arm64)
  • bash

Installation

If your OS has installed curl or wget ( it usually has installed curl), you can run one of commands following.

curl -fsSL https://raw.githubusercontent.com/yuzheng14/frontend-dev-env-setup/main/install.sh | bash
wget -qO- https://raw.githubusercontent.com/yuzheng14/frontend-dev-env-setup/main/install.sh | bash

Otherwisely you can copy content here into install.sh and run command following.

bash install.sh

Todo

  • i18n support
  • choosable prompt support
  • more accurate oh-my-zsh detection
  • Multiple OS support ( macOS, centOS ... )