Remove more Android support and fix scripts
This commit is contained in:
parent
fa33c9df89
commit
0abb173a4a
15
install.sh
15
install.sh
|
@ -9,7 +9,7 @@ command -v stow >/dev/null 2>&1 || { echo "Please install GNU Stow!"; exit 1; }
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
echo "=> Determining OS..."
|
echo "=> Determining OS..."
|
||||||
|
|
||||||
if [ "$(uname -o)" = "Android" ] || [ "$(lsb_release -si)" = "Fedora" ]; then
|
if [ "$(lsb_release -si)" = "Fedora" ]; then
|
||||||
set -- "alacritty" "nvim" "scripts" "zsh"
|
set -- "alacritty" "nvim" "scripts" "zsh"
|
||||||
INSTALL="pkg install"
|
INSTALL="pkg install"
|
||||||
elif [ "$(lsb_release -si)" = "Debian" ] || [ "$(lsb_release -si)" = "Ubuntu" ]; then
|
elif [ "$(lsb_release -si)" = "Debian" ] || [ "$(lsb_release -si)" = "Ubuntu" ]; then
|
||||||
|
@ -17,7 +17,7 @@ elif [ "$(lsb_release -si)" = "Debian" ] || [ "$(lsb_release -si)" = "Ubuntu" ];
|
||||||
INSTALL="sudo apt install"
|
INSTALL="sudo apt install"
|
||||||
elif [ "$(lsb_release -si)" = "Artix" ]; then
|
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"
|
||||||
INSTALL="sudo pacman -S"
|
INSTALL="doas pacman -S"
|
||||||
else
|
else
|
||||||
echo "OS not supported!"
|
echo "OS not supported!"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -40,8 +40,8 @@ done
|
||||||
|
|
||||||
if [ -n "$ZSH" ]; then
|
if [ -n "$ZSH" ]; then
|
||||||
if ! grep -q "$(id -nu).*/zsh$" /etc/passwd; then
|
if ! grep -q "$(id -nu).*/zsh$" /etc/passwd; then
|
||||||
command -v zsh >/dev/null 2>&1 || sleep 0.5 \
|
command -v zsh >/dev/null 2>&1 || sleep 0.5 &&
|
||||||
&& echo "=> Installing Zsh" && $INSTALL zsh
|
echo "=> Installing Zsh" && $INSTALL zsh
|
||||||
|
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
chsh -s /bin/zsh
|
chsh -s /bin/zsh
|
||||||
|
@ -49,12 +49,13 @@ if [ -n "$ZSH" ]; then
|
||||||
|
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
echo "=> Initializing Zsh"
|
echo "=> Initializing Zsh"
|
||||||
zsh -ic "fast-theme ~/.config/zsh/fast-theme.ini"
|
echo " :: Please run the following command from Zsh:"
|
||||||
|
echo " $ fast-theme ~/.config/zsh/fast-theme.ini"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$NVIM" ] && [ ! -f "${XDG_DATA_HOME:-$HOME/.local/share}/nvim/site/autoload/plug.vim" ]; then
|
if [ -n "$NVIM" ] && [ ! -f "${XDG_DATA_HOME:-$HOME/.local/share}/nvim/site/autoload/plug.vim" ]; then
|
||||||
command -v nvim >/dev/null 2>&1 || sleep 0.5 \
|
command -v nvim >/dev/null 2>&1 || sleep 0.5 &&
|
||||||
&& echo "=> Installing Neovim" && $INSTALL nvim
|
echo "=> Installing Neovim" && $INSTALL nvim
|
||||||
|
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
echo "=> Installing vim-plug and plugins for Neovim"
|
echo "=> Installing vim-plug and plugins for Neovim"
|
||||||
|
|
|
@ -15,19 +15,19 @@ elif [ "$(uname -o)" = "GNU/Linux" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
command -v flatpak >/dev/null 2>&1 \
|
command -v flatpak >/dev/null 2>&1 &&
|
||||||
&& { echo; flatpak update; }
|
{ echo; flatpak update; }
|
||||||
command -v npm >/dev/null 2>&1 \
|
command -v npm >/dev/null 2>&1 &&
|
||||||
&& { echo; npm update --location="global"; }
|
{ echo; npm update --location="global"; }
|
||||||
command -v rustup >/dev/null 2>&1 \
|
command -v rustup >/dev/null 2>&1 &&
|
||||||
&& { echo; rustup update; }
|
{ echo; rustup update; }
|
||||||
command -v nvim >/dev/null 2>&1 \
|
command -v nvim >/dev/null 2>&1 &&
|
||||||
&& { echo; nvim --headless +PlugUpdate +PlugUpgrade +qa; echo; }
|
{ echo; nvim --headless +PlugUpdate +PlugUpgrade +qa; echo; }
|
||||||
command -v docker >/dev/null 2>&1 \
|
command -v docker >/dev/null 2>&1 &&
|
||||||
&& [ "$(docker images | wc -l)" -gt 1 ] \
|
[ "$(docker images | wc -l)" -gt 1 ] &&
|
||||||
&& { echo; docker images \
|
{ echo; docker images |
|
||||||
| awk '(NR>1) && ($2!~/none/) {print $1":"$2}' \
|
awk '(NR>1) && ($2!~/none/) {print $1":"$2}' |
|
||||||
| xargs -l docker pull; }
|
xargs -l docker pull; }
|
||||||
|
|
||||||
echo
|
echo
|
||||||
zsh -ic "antidote update && echo && git -C $(dirname -- "$(readlink -e "$0")") pull"
|
zsh -ic "antidote update && echo && git -C $(dirname -- "$(readlink -e "$0")") pull"
|
||||||
|
|
Loading…
Reference in a new issue