Closed gabyx closed 2 years ago
script -fqec zsh /dev/null </dev/null >/dev/null
Ok, :) what does that do?
Have you already checked man script
?
It basically does the same thing as starting zsh
interactively and exiting it.
Ah, ok yes, just checked. But the question is then how to start a shell interactively inside dockerfile? Is that the workaround?
But the question is then how to start a shell interactively inside dockerfile?
See above.
Is that the workaround?
Not sure what you mean.
Ok, that starts gitstatusd
, but is hangs, because the shell is not exiting. Do you know how to exit?
Try this:
echo exit | script -qec zsh /dev/null >/dev/null
Oh great. Something learned script
. I actually did
script -fqec zsh /dev/null <(echo "exit 0") >/dev/null
which of course is pipeing a file...
Thanks a lot, by the way powerlevel10k is best!
Thanks a lot, by the way powerlevel10k is best!
You are welcome. And thanks ^^
Since you seem to be a Linux master geek: maybe that thing is interesting for you: https://github.com/gabyx/Githooks
I am using powerlevel10k in a Dockerfile: I am setup
.p10k.zsh
in.zshrc
and then run once:to install all plugins ahead (such that they are already inplace in the image.)
How can I trigger that
gitstatusd
is installed as well?