Files
dotfiles/install.sh
KaasKop- 1e94159dbf Updates
Update for debian to work on first install.
2023-12-26 10:39:09 +01:00

26 lines
908 B
Bash
Executable File

#!/usr/bin/bash
# determine distro check
# install stow, fish, neovim, ranger, mpv(?)
# Determine the distribution name and version
OS=$(awk -F= '/^ID=/{print $2}' /etc/os-release | tr '[:upper:]' '[:lower:]')
case "$OS" in
"arch")
echo "Installing for Arch"
/usr/bin/pacman -Sy --needed stow fish neovim ranger mpv pkgfile python-pynvim wl-clipboard ninja unzip atool elinks ffmpegthumbnailer highlight imagemagick libcaca mediainfo poppler lazygit
;;
"ubuntu" | "debian")
echo "Installing for Ubuntu or Debian"
/usr/bin/apt-get update
curl -L "https://github.com/neovim/neovim-releases/releases/download/nightly/nvim-linux64.deb" -o /tmp/nvim-linux64.deb
/usr/bin/apt install /tmp/nvim-linux64.deb
/usr/bin/apt install ranger stow fish mpv atool caca-utils elinks highlight mediainfo poppler-utils build-essential lazygit
/usr/bin/rm /tmp/nvim-linux64.deb
;;
*)
echo "Not supported"
;;
esac