Compare commits

...

5 Commits

3 changed files with 27 additions and 7 deletions

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM pritunl/archlinux
RUN pacman -Sy --noconfirm sudo zsh \
&& useradd -m -s /bin/zsh test \
&& groupadd sudo \
&& usermod -aG sudo test \
&& echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
USER test
COPY . /src
RUN cd /src/packages && ./packages.sh \
&& cd .. && ./install.sh \
&& cd ~ && sudo rm -r /src

View File

@ -54,12 +54,10 @@ if [ $ZSH_POWERLINE -gt 0 ]; then
POWERLINE_DIR="$(pip3 show powerline-status --isolated | grep '^Location:' | awk '{print $2}')"
log "Powerline repository root: $POWERLINE_DIR"
log "Disabling current prompt theme..."
prompt off
log "Preparing zstyle..."
autoload -Uz promptinit
promptinit
prompt off
log "Loading powerline zsh plugin..."
source "$POWERLINE_DIR/powerline/bindings/zsh/powerline.zsh"

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh -e
. ./os.sh
@ -26,6 +26,10 @@ pip3_install() {
pip3 install --user -U "$@"
}
download() {
curl -L "$@"
}
###
# Actual package installation code from here
@ -41,7 +45,8 @@ if has_tags pm:pacman; then
tar \
gzip \
xz \
jq
jq \
git
# yay
if ! has_tags pm:yay; then
@ -53,7 +58,7 @@ if has_tags pm:pacman; then
(
dir="$(mktemp -d)"
cd "${dir}"
wget https://aur.archlinux.org/cgit/aur.git/snapshot/yay.tar.gz -O- | tar -xz --strip=1
download https://aur.archlinux.org/cgit/aur.git/snapshot/yay.tar.gz | tar -xz --strip=1
makepkg -sri --noconfirm
cd
rm -rf "${dir}"
@ -99,7 +104,8 @@ if has_tags pm:apt; then
python3-pip \
zsh \
zsh-syntax-highlighting \
jq
jq \
git
if has_tags desktop; then
apt_install ibus
fi