configs/zsh/zsh-setup.bash

21 lines
434 B
Bash
Raw Normal View History

2023-08-23 11:54:46 -05:00
#!/usr/bin/env bash
2023-08-21 13:13:13 -05:00
# Exit if there's an error
set -e
2023-08-20 21:35:16 -05:00
declare -A osInfo;
osInfo[/etc/redhat-release]=yum
osInfo[/etc/arch-release]=pacman
osInfo[/etc/gentoo-release]=emerge
osInfo[/etc/SuSE-release]=zypp
osInfo[/etc/debian_version]=apt-get
osInfo[/etc/alpine-release]=apk
for f in ${!osInfo[@]}
do
if [[ -f $f ]];then
PACKAGE_MANAGER=${osInfo[$f]}
2023-08-20 21:35:16 -05:00
fi
done
sudo ${PACKAGE_MANAGER} install zsh -y
2023-08-20 21:35:16 -05:00
cp -r zsh-files/* ~/