Coder Social home page Coder Social logo

mark-joy / .misty_envconf_pub Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nyamisty/.misty_envconf_pub

0.0 0.0 0.0 133 KB

Public components of NyaMisty's env conf

Home Page: https://drafts.misty.moe/超级shell环境-3e10293f31fa42d2933dfdcc6df325b1

Shell 58.27% GDB 0.50% Vim Script 41.23%

.misty_envconf_pub's Introduction

.misty_envconf

Here's my own ZSH shell environment, it has several special features:

  • has no fancy console key bindings
  • fully modularized
  • suitable to be used on other Unix-like platforms like iOS/Android

Functions

  • Flexible config

    • auto config synchonrize based on Git: silently update config on each shell startup
    • can disable modules using local config file
  • Fluent proxy wrapper:

    • sets all sorts of proxy variables
    • support temporarily changing proxy by setting PROXY_STR variable and then run proxy command
    • support temporarily disabling proxy by using unproxy command
    • aliases proxychains4
    • proxies apt
    • proxies git ssh
  • Better sudo:

    • sudo by default using sudo -E
    • su being replaced by sudo -E zsh, which allow us to use ZSH environment in root mode temporarily
    • original sudo (without -E) can be found at osudo
  • Various helpers:

    • nvm lazy load (nvm is extremely slow to load, so enable the whole nvm environment it only if nvm are called)
    • oh-my-zsh wrapper
    • pyenv wrapper
    • "forget last command history" helper

Installation

  1. Clone this repo
  2. Execute ./install.sh, and copy .zshrc.local.template to ~/.zshrc.local
  3. In .zshrc.local, override the environment to blacklist some module using ENVCONF_BLACKLIST variable, or control the behaviour of modules

.misty_envconf_pub's People

Contributors

nyamisty 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.