Skip to content

Commit

Permalink
Merge pull request ChrisTitusTech#409 from nnyyxxxx/testing-17
Browse files Browse the repository at this point in the history
Move configuration setup outside of setup functions
  • Loading branch information
ChrisTitusTech authored Sep 16, 2024
2 parents f3e3ddc + 60dbe03 commit 079411e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tabs/applications-setup/alacritty-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -27,4 +30,5 @@ setupAlacritty() {

checkEnv
checkEscalationTool
setupAlacritty
setupAlacritty
setupAlacrittyConfig
4 changes: 4 additions & 0 deletions tabs/applications-setup/kitty-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -28,3 +31,4 @@ setupKitty() {
checkEnv
checkEscalationTool
setupKitty
setupKittyConfig
4 changes: 4 additions & 0 deletions tabs/applications-setup/rofi-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -33,3 +36,4 @@ setupRofi() {
checkEnv
checkEscalationTool
setupRofi
setupRofiConfig

0 comments on commit 079411e

Please sign in to comment.