29 lines
977 B
Bash
Executable File
29 lines
977 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
# determine distro check
|
|
# install stow, fish, neovim, ranger, mpv(?)
|
|
|
|
# Determine the distribution name and version
|
|
OS=$(awk '/DISTRIB_ID=/' /etc/*-release | sed 's/DISTRIB_ID=//' | tr -d '"')
|
|
VERSION=$(awk '/DISTRIB_RELEASE=/' /etc/*-release | sed 's/DISTRIB_RELEASE=//' | sed 's/[.]0/./')
|
|
|
|
echo $OS
|
|
# Check the distribution name
|
|
|
|
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
|
|
;;
|
|
"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-util
|
|
;;
|
|
*)
|
|
echo "Not supported"
|
|
;;
|
|
esac
|