This commit is contained in:
theanonymousexyz 2022-05-22 18:08:26 +02:00
parent dcd956233f
commit 78639d8876
No known key found for this signature in database
GPG key ID: 35EE09F5481049BB
2 changed files with 11 additions and 2 deletions

View file

@ -17,7 +17,7 @@ elif [ "$(lsb_release -si)" = "Artix" ]; then
set -- "alacritty" "mako" "nvim" "scripts" "sway" "swaylock" "swaynag" "waybar" "zsh" set -- "alacritty" "mako" "nvim" "scripts" "sway" "swaylock" "swaynag" "waybar" "zsh"
else else
echo "OS not supported!" echo "OS not supported!"
exit 2 exit 1
fi fi
sleep 0.5 sleep 0.5
@ -26,8 +26,11 @@ echo "=> Installing dotfile packages..."
for pkg in "$@"; do for pkg in "$@"; do
sleep 0.1 sleep 0.1
echo " -> Stowing $pkg" echo " -> Stowing $pkg"
# Symlink only the individual files instead of the entire directory
[ "$pkg" = "zsh" ] && mkdir -p "$HOME/.config/$pkg"
[ "$pkg" = "scripts" ] && mkdir -p "$HOME/.local/bin"
[ "$pkg" = "zsh" ] && mkdir -p "$HOME/.config/$pkg" # Symlink only the individual files instead of the entire directory
stow -t "$HOME" --ignore="README.md" "$pkg" stow -t "$HOME" --ignore="README.md" "$pkg"
done done

View file

@ -18,3 +18,9 @@ fi
command -v flatpak >/dev/null 2>&1 && { echo; flatpak update; } || true command -v flatpak >/dev/null 2>&1 && { echo; flatpak update; } || true
command -v docker >/dev/null 2>&1 && { echo; docker images | awk '(NR>1) && ($2!~/none/) {print $1":"$2}' | xargs -l docker pull; } || true command -v docker >/dev/null 2>&1 && { echo; docker images | awk '(NR>1) && ($2!~/none/) {print $1":"$2}' | xargs -l docker pull; } || true
command -v npm >/dev/null 2>&1 && { echo; npm up -g; } || true command -v npm >/dev/null 2>&1 && { echo; npm up -g; } || true
command -v nvim >/dev/null 2>&1 && { echo; nvim --headless +PlugUpdate +PlugUpgrade +qa; echo; } || true
echo
DOTDIR="$(dirname $(readlink -e $0))"
zsh -ic "git -C $DOTDIR pull && antidote update && fg"