mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
change PWD to not use prompt-path and fix unicode issues
This commit is contained in:
parent
010282edf2
commit
fb41d2a51c
@ -87,9 +87,9 @@ RUN echo "export LC_ALL=en_US.UTF-8" >> /root/.bashrc
|
||||
RUN echo "export LC_ALL=en_US.UTF-8" >> /root/.zshrc
|
||||
|
||||
# RUN echo "source /repos/powerlevel10k/powerlevel10k.zsh-theme" >> /home/puter-user/.zshrc
|
||||
RUN echo "export PS1='(\$?) [\u@puter:\$(basename \$(tty)) \$(prompt-path)] \\033[36;1m❯\\033[0m '" >> /root/.bashrc
|
||||
RUN echo "export PS1='(\$?) [\u@puter:\$(basename \$(tty)) \w] \\033[36;1m❯\\033[0m '" >> /root/.bashrc
|
||||
RUN echo "setopt PROMPT_SUBST" >> /root/.zshrc
|
||||
RUN echo "export PROMPT='(%?) [%n@puter:\$(basename \$(tty)) \$(prompt-path)] ❯ '" >> /root/.zshrc
|
||||
RUN echo "export PROMPT='(%?) [%n@puter:\$(basename \$(tty)) %~] ❯ '" >> /root/.zshrc
|
||||
|
||||
RUN echo "/etc/puter-motd" >> /root/.bashrc
|
||||
RUN echo "/etc/puter-motd" >> /root/.zshrc
|
||||
|
@ -165,7 +165,7 @@ export class EmuCommandProvider {
|
||||
const decoder = new TextDecoder();
|
||||
emu.on('message', message => {
|
||||
if (message.$ === 'stdout') {
|
||||
ctx.externs.out.write(decoder.decode(message.data));
|
||||
ctx.externs.out.write(decoder.decode(message.data, {stream: true}));
|
||||
}
|
||||
if (message.$ === 'chtermios') {
|
||||
if ( message.termios.echo !== undefined ) {
|
||||
|
Loading…
Reference in New Issue
Block a user