Files
dotfiles/install.sh
KaasKop- cf061d2777 Updates
Add nvm to fish
changed theme back to 'tokyonight' on nvim
Added jq for ranger as a dependency
2023-12-29 16:19:44 +01:00

26 lines
914 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 jq
;;
"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 jq
/usr/bin/rm /tmp/nvim-linux64.deb
;;
*)
echo "Not supported"
;;
esac