machine_setup/setup/install.sh

54 lines
1022 B
Bash
Raw Normal View History

2024-01-21 17:43:30 +00:00
#!/bin/bash
2024-01-21 17:22:26 +00:00
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*)
2024-01-21 17:22:26 +00:00
machine=Linux;;
Darwin*)
2024-01-21 17:22:26 +00:00
machine=Mac;;
CYGWIN*)
2024-01-21 17:22:26 +00:00
machine=Cygwin;;
MINGW*)
2024-01-21 17:22:26 +00:00
machine=MinGw;;
MSYS_NT*)
2024-01-21 17:22:26 +00:00
machine=Git;;
*)
2024-01-21 17:22:26 +00:00
machine="UNKNOWN:${unameOut}"
esac
if [ "$machine" = "Mac" ]
then
2024-01-21 18:41:43 +00:00
pkg_manager='brew'
2024-01-21 17:22:26 +00:00
echo "Installing brew package manager"
2024-01-21 18:43:19 +00:00
bash programs/package_manager/brew/install_brew.sh
2024-01-21 17:22:26 +00:00
fi
if [ "$machine" = "Linux" ]
then
2024-01-21 18:41:43 +00:00
pkg_manager="apt"
2024-01-21 17:22:26 +00:00
fi
2024-01-21 17:43:30 +00:00
echo "Installing ${pkg_manager} packages"
2024-01-21 18:43:19 +00:00
bash programs/package_manager/${pkg_manager}/packages.sh
2024-01-21 19:12:40 +00:00
if [ -d programs/package_manager/${pkg_manager}/others ]
2024-01-21 17:22:26 +00:00
then
for file in programs/package_manager/${pkg_manager}/others/*.sh
2024-01-21 17:22:26 +00:00
do
bash ${file}
done
fi
echo "Installing side packages"
2024-01-21 21:02:45 +00:00
for file in $(find programs/others/ -name '*.sh')
2024-01-21 17:22:26 +00:00
do
bash ${file}
done
echo "Installing dotfiles"
bash programs/dotfiles/oh-my-zsh.sh
bash programs/dotfiles/zsh-plugins.sh
bash programs/dotfiles/powerlevel10k.sh
bash programs/dotfiles/nerd-font.sh
2024-01-21 17:22:26 +00:00