Git Product home page Git Product logo

zsh.sh's Introduction

A oh-my-zsh configure auto deploy shell

by a lazy man @gunjianpan

  • When you login a new servicer or use new docker container,
  • Do you feel depressed🙉, because of the write code interface?
  • Do you feel manic😡, because there are no coding suggestion?
  • Do you feel tired😷, because you have to use so many service that you can't deploy zsh env every service.

Now, Everything you can use zsh.sh to solve this problem.

This shell include

  • zsh, curl, git
  • oh-my-zsh, zsh-syntax-highlighting, zsh-autosuggestions
  • fzf, fd
  • vimrc

Support Linux Distribution

Now: support Ubuntu + CentOS + MacOS(I can't find a test machine, hhh, maybe have some bugs.)

  • Test in docker & host version, in AiliYun, TencentCloud and huaweicloud
  • Support amb64 & i386.
  • Support docker version for Ubuntu, CentOS, Ubuntu/32bit

Quick Start

zsh.sh

PS: you need execute bash zsh.sh && source ${ZDOTDIR:-$HOME}/.zshrc by twice

wget https://raw.github.com/iofu728/zsh.sh/master/zsh.sh
bash zsh.sh && source ${ZDOTDIR:-$HOME}/.zshrc
bash zsh.sh && source ${ZDOTDIR:-$HOME}/.zshrc

Docker

Notice: Docker version need execute vim +'PlugInstall --sync' +qall &> /dev/null < /dev/tty after docker exec to ima, if you want to use vim plug function。

  • Ubuntu:18.04
docker pull iofu728/zsh.sh.ubuntu
docker run -it -d --name zsh_ubuntu iofu728/zsh.sh.ubuntu
docker exec -it zsh_ubuntu /bin/zsh
vim +'PlugInstall --sync' +qall &> /dev/null < /dev/tty
  • Ubuntu32:16.04
docker pull iofu728/zsh.sh.ubuntu32
docker run -it -d --name zsh_ubuntu32 iofu728/zsh.sh.ubuntu32
docker exec -it zsh_ubuntu32 /bin/zsh
vim +'PlugInstall --sync' +qall &> /dev/null < /dev/tty
  • CentOS:7
docker pull iofu728/zsh.sh.centos
docker run -it -d --name zsh_centos iofu728/zsh.sh.centos
docker exec -it zsh_centos /bin/zsh
vim +'PlugInstall --sync' +qall &> /dev/null < /dev/tty

Document

  • 如何给码农 👨‍💻‍ 的 Mac 开光
  • Linux 流水式开光神器 zsh.sh

QA

1.Q: Apt install error, like HASH MISMATCH

A: Hash mismatch is cause by Communication Service Provider, CSP crash clash.

You can change Internet source, like Personal Hotspot

2.Q: I pull your docker image and run exec, but I can't enter oh-my-zsh interface.

A: You must exec by /bin/zsh. It means your local OS must have zsh.

docker exec -it zsh_ubuntu /bin/zsh

3.: When exit ssh connect or docker exec, terminal show lots of error, like bash: autoload: command not found

A: It causing by change default shell from /bin/zsh -> /bin/bash.

If you exec docker by /bin/bash and install zsh with our shell, It will show this error, because of default shell change to your enter set /bin/bash

So, you must enter docker by docker exec -it zsh_ubuntu /bin/zsh

4.Q: why don't you execute vim +'PlugInstall --sync' +qall &> /dev/null < /dev/tty in Docker build progress

A: In build progress, There are no /dev/tty can be used. I also explore to find a way reduce user operation. In the same way, we also need user to execute bash zsh.sh && source ${ZDOTDIR:-$HOME}/.zshrc by twice. It cause by source & env mechanism.

zsh.sh's People

Contributors

iofu728 avatar

Watchers

 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.