Comments (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.
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)
- passwd HOT 1
- Powerlevel9k arguments overridden by default p10k theme HOT 3
- Why set the env 'TERM=xterm' HOT 1
- How do I exec into the container using zsh? HOT 2
- Default theme is "codespaces" HOT 1
- Container size optimization HOT 4
- Multiple executions fail. HOT 2
- Set zsh as default terminal input HOT 2
- Running in devcontainer - theme does not work HOT 2
- no such widget history-substring-search-up HOT 3
- Error trying to build image with default options HOT 2
- non root user install failed: sudo: no tty present and no askpass program specified HOT 4
- Permissions are not set properly HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zsh-in-docker.