Compare commits
5 Commits
d60099c22a
...
e112a35393
Author | SHA1 | Date |
---|---|---|
|
e112a35393 | |
|
90dbf9488f | |
|
de4f1a67fe | |
|
168495dd5d | |
|
c35d129d71 |
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -54,12 +54,10 @@ if [ $ZSH_POWERLINE -gt 0 ]; then
|
||||||
POWERLINE_DIR="$(pip3 show powerline-status --isolated | grep '^Location:' | awk '{print $2}')"
|
POWERLINE_DIR="$(pip3 show powerline-status --isolated | grep '^Location:' | awk '{print $2}')"
|
||||||
log "Powerline repository root: $POWERLINE_DIR"
|
log "Powerline repository root: $POWERLINE_DIR"
|
||||||
|
|
||||||
log "Disabling current prompt theme..."
|
|
||||||
prompt off
|
|
||||||
|
|
||||||
log "Preparing zstyle..."
|
log "Preparing zstyle..."
|
||||||
autoload -Uz promptinit
|
autoload -Uz promptinit
|
||||||
promptinit
|
promptinit
|
||||||
|
prompt off
|
||||||
|
|
||||||
log "Loading powerline zsh plugin..."
|
log "Loading powerline zsh plugin..."
|
||||||
source "$POWERLINE_DIR/powerline/bindings/zsh/powerline.zsh"
|
source "$POWERLINE_DIR/powerline/bindings/zsh/powerline.zsh"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh -e
|
||||||
|
|
||||||
. ./os.sh
|
. ./os.sh
|
||||||
|
|
||||||
|
@ -26,6 +26,10 @@ pip3_install() {
|
||||||
pip3 install --user -U "$@"
|
pip3 install --user -U "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
download() {
|
||||||
|
curl -L "$@"
|
||||||
|
}
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
||||||
# Actual package installation code from here
|
# Actual package installation code from here
|
||||||
|
@ -41,7 +45,8 @@ if has_tags pm:pacman; then
|
||||||
tar \
|
tar \
|
||||||
gzip \
|
gzip \
|
||||||
xz \
|
xz \
|
||||||
jq
|
jq \
|
||||||
|
git
|
||||||
|
|
||||||
# yay
|
# yay
|
||||||
if ! has_tags pm:yay; then
|
if ! has_tags pm:yay; then
|
||||||
|
@ -53,7 +58,7 @@ if has_tags pm:pacman; then
|
||||||
(
|
(
|
||||||
dir="$(mktemp -d)"
|
dir="$(mktemp -d)"
|
||||||
cd "${dir}"
|
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
|
makepkg -sri --noconfirm
|
||||||
cd
|
cd
|
||||||
rm -rf "${dir}"
|
rm -rf "${dir}"
|
||||||
|
@ -99,7 +104,8 @@ if has_tags pm:apt; then
|
||||||
python3-pip \
|
python3-pip \
|
||||||
zsh \
|
zsh \
|
||||||
zsh-syntax-highlighting \
|
zsh-syntax-highlighting \
|
||||||
jq
|
jq \
|
||||||
|
git
|
||||||
if has_tags desktop; then
|
if has_tags desktop; then
|
||||||
apt_install ibus
|
apt_install ibus
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue