Move configuration setup outside of setup functions

This commit is contained in:
nnyyxxxx 2024-09-15 22:21:22 -04:00
parent 6838811e74
commit fe9139e325
3 changed files with 14 additions and 1 deletions

View File

@ -16,6 +16,9 @@ setupAlacritty() {
else
echo "alacritty is already installed."
fi
}
setupAlacrittyConfig() {
echo "Copy alacritty config files"
if [ -d "${HOME}/.config/alacritty" ] && [ ! -d "${HOME}/.config/alacritty-bak" ]; then
cp -r "${HOME}/.config/alacritty" "${HOME}/.config/alacritty-bak"
@ -27,4 +30,5 @@ setupAlacritty() {
checkEnv
checkEscalationTool
setupAlacritty
setupAlacritty
setupAlacrittyConfig

View File

@ -16,6 +16,9 @@ setupKitty() {
else
echo "Kitty is already installed."
fi
}
setupKittyConfig() {
echo "Copy Kitty config files"
if [ -d "${HOME}/.config/kitty" ] && [ ! -d "${HOME}/.config/kitty-bak" ]; then
cp -r "${HOME}/.config/kitty" "${HOME}/.config/kitty-bak"
@ -23,8 +26,10 @@ setupKitty() {
mkdir -p "${HOME}/.config/kitty/"
curl -sSLo "${HOME}/.config/kitty/kitty.conf" https://github.com/ChrisTitusTech/dwm-titus/raw/main/config/kitty/kitty.conf
curl -sSLo "${HOME}/.config/kitty/nord.conf" https://github.com/ChrisTitusTech/dwm-titus/raw/main/config/kitty/nord.conf
}
checkEnv
checkEscalationTool
setupKitty
setupKittyConfig

View File

@ -16,6 +16,9 @@ setupRofi() {
else
echo "Rofi is already installed."
fi
}
setupRofiConfig() {
echo "Copy Rofi config files"
if [ -d "$HOME/.config/rofi" ] && [ ! -d "$HOME/.config/rofi-bak" ]; then
cp -r "$HOME/.config/rofi" "$HOME/.config/rofi-bak"
@ -33,3 +36,4 @@ setupRofi() {
checkEnv
checkEscalationTool
setupRofi
setupRofiConfig