#!/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