GithubHelp home page GithubHelp logo

Comments (2)

deluan avatar deluan commented on May 21, 2024 2

Hey, glad you liked it :)

As you already found out, you can override the .zshrc file. In that case, you don't need the -a lines, as you are overriding the whole thing.

Another way could be to add just the line to load .p10k.zsh from .zshrc without overriding the whole file:

RUN sh -c "$(cat zsh-in-docker.sh)" -- \
...
  -a 'source ~/.p10k.zsh'

ADD .devcontainer/.p10k.zsh root

Re: fonts, it usually works out-of-box for me, I just have to install fonts on my host machine.

I'm closing this for now, but feel free to reopen in case you are still having trouble with this.

from zsh-in-docker.

Norfeldt avatar Norfeldt commented on May 21, 2024

I found a way 👍

# For more information, please refer to https://aka.ms/vscode-docker-python
FROM python:3.8

# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE 1

# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED 1

ADD .devcontainer/zsh-in-docker.sh .
RUN sh -c "$(cat zsh-in-docker.sh)" -- \
  -p git \
  -p https://github.com/zsh-users/zsh-autosuggestions \
  -p https://github.com/zsh-users/zsh-completions \
  -p https://github.com/zsh-users/zsh-history-substring-search \
  -p https://github.com/zsh-users/zsh-syntax-highlighting \
  -p 'history-substring-search' \
  -a 'bindkey "\$terminfo[kcuu1]" history-substring-search-up' \
  -a 'bindkey "\$terminfo[kcud1]" history-substring-search-down' 
ADD .devcontainer/.zshrc root
ADD .devcontainer/.p10k.zsh root

# Install pip requirements
ADD requirements.txt .
RUN python -m pip install -r requirements.txt

WORKDIR /app
ADD . /app

ENTRYPOINT [ "/bin/zsh" ]

from zsh-in-docker.

Related Issues (14)

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.