Coder Social home page Coder Social logo

develop-env's Introduction

日常开发环境配置

许多内容都是从 wyg1997/DockerFileswyg1997/Linux-configs处借鉴,非常感谢!

基本组成

开发环境搭建

  • 创建镜像
    ./build.sh
  • 启动并运行容器
    # 启动一个纯CPU的开发环境
    ./start_cpu_only_container ${container-name} ${image-name} ${image-tag}
    
    # 启动一个GPU的开发环境
    ./start_gpu_only_container ${container-name} ${image-name} ${image-tag}
    
    # 进入开发环境
    ./coding ${container-name}
  • 停止并删除容器

    ./destroy ${container-name}

功能支持

zsh

  • oh-my-zsh采用powerlevel10k,在第一次进入容器时,会自动触发样式的配置,具体参考这里
  • 支持在命令行窗口使用vim的操作手法,powerlevel10kprompt_char特性使得可以明显区分出当前在什么模式下,具体参考这里
  • 已添加git插件,支持git相关操作的快捷方式。
  • 已添加z插件,可以快速跳转到之前跳转过的路径。
  • 已添加zsh-syntax-highlighting,用于高亮命令。
  • 已添加zsh-autosuggestions,用于建议补全,并绑定快捷键:
    • ctrl + j:采纳并执行建议补全
    • ctrl + f:采纳建议补全
  • 可以使用ex命令解压缩任意格式的压缩包。
  • 可以使用upload命令上传临时文件和其他人分享。

tmux

  • 待填坑

其他说明

使用vscode的remote-ssh

  • 在容器外生成密钥
  • 将公钥拷贝到容器内
  • 修改容器内sshd的配置并重启服务

develop-env's People

Contributors

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