Added tmux config with nvim fixes Updated install.sh to also run stow Added support for motd in fish
30 lines
1.2 KiB
Bash
Executable File
30 lines
1.2 KiB
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"
|
|
echo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_12/ /' | sudo tee /etc/apt/sources.list.d/shells:fish:release:3.list
|
|
curl -fsSL https://download.opensuse.org/repositories/shells:fish:release:3/Debian_12/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/shells_fish_release_3.gpg > /dev/null
|
|
sudo apt 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 atool caca-utils elinks highlight mediainfo poppler-utils build-essential jq
|
|
/usr/bin/rm /tmp/nvim-linux64.deb
|
|
;;
|
|
*)
|
|
echo "Not supported"
|
|
;;
|
|
esac
|
|
|
|
stow -t ~/.config config
|