Skip to content
View ysl2's full-sized avatar
🐧
Working
🐧
Working
  • Tencent
  • Chengdu, China
  • 06:13 (UTC +08:00)

Block or report ysl2

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
ysl2/README.md

My workflow: dotfiles + nvim

Try it in docker

  1. Download docker mirror:

    docker pull ysl2/ysl2:latest
  2. Go to the env.

    docker run \
        -it \
        --rm \
        -w /root \
        ysl2/ysl2:latest \
        zsh
  3. If you only want to use nvim, try this:

    # For example, you want to edit your project `~/.config/nvim`:
    docker run \
        -it \
        --rm \
        -e PATH=/root/.vocal/_:/root/.vocal:/root/.vocal/nvim-linux64/bin:/root/.vocal/node-v22.11.0-linux-x64/bin:/root/.vocal/go/bin:/root/.cargo/bin:/root/.local/bin:/root/bin:/usr/sbin:/sbin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/root/.vocal/go/gopath/bin: \
        -v ~/.config/nvim:/root/myproject \
        -w /root/myproject \
        ysl2/ysl2:latest \
        nvim
  4. How to hot update in container:

    docker run \
        -it \
        -v ~/.ssh/id_rsa:/root/.ssh/id_rsa \
        -v ~/.ssh/id_rsa.pub:/root/.ssh/id_rsa.pub \
        -w /root \
        ysl2/ysl2:latest \
        zsh
    
    # Then you can run something like `git pull ...` in `/root/.config/nvim`, `/root/.dotfiles/` and `/root`
  5. (For myself) How to push changes to the docker hub:

    # Start the container, and modify something
    docker run -it ysl2/ysl2:v0.1.1 /usr/bin/zsh
    
    # Publish changes:
    docker commit 7b7f9d12db29 ysl2/ysl2:v0.1.2
    docker tag ysl2/ysl2:v0.1.2 ysl2/ysl2:latest
    docker push ysl2/ysl2:v0.1.2
    docker push ysl2/ysl2:latest

Pinned Loading

  1. .dotfiles .dotfiles Public

    My dotfiles

    Shell 2

  2. nvim nvim Public

    An ultimate modern neovim pure lua configuration that focuses on KISS principle.

    Lua 36 3

  3. i3 i3 Public

    My personal i3wm rice.

    Python 1

  4. .dotlinks .dotlinks Public

    My dotfiles (for windows and mac. switch to their branches)

    Shell 1