mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-06 05:29:42 +00:00
Move configuration setup outside of setup functions
This commit is contained in:
parent
6838811e74
commit
fe9139e325
|
@ -16,6 +16,9 @@ setupAlacritty() {
|
||||||
else
|
else
|
||||||
echo "alacritty is already installed."
|
echo "alacritty is already installed."
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
setupAlacrittyConfig() {
|
||||||
echo "Copy alacritty config files"
|
echo "Copy alacritty config files"
|
||||||
if [ -d "${HOME}/.config/alacritty" ] && [ ! -d "${HOME}/.config/alacritty-bak" ]; then
|
if [ -d "${HOME}/.config/alacritty" ] && [ ! -d "${HOME}/.config/alacritty-bak" ]; then
|
||||||
cp -r "${HOME}/.config/alacritty" "${HOME}/.config/alacritty-bak"
|
cp -r "${HOME}/.config/alacritty" "${HOME}/.config/alacritty-bak"
|
||||||
|
@ -28,3 +31,4 @@ setupAlacritty() {
|
||||||
checkEnv
|
checkEnv
|
||||||
checkEscalationTool
|
checkEscalationTool
|
||||||
setupAlacritty
|
setupAlacritty
|
||||||
|
setupAlacrittyConfig
|
|
@ -16,6 +16,9 @@ setupKitty() {
|
||||||
else
|
else
|
||||||
echo "Kitty is already installed."
|
echo "Kitty is already installed."
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
setupKittyConfig() {
|
||||||
echo "Copy Kitty config files"
|
echo "Copy Kitty config files"
|
||||||
if [ -d "${HOME}/.config/kitty" ] && [ ! -d "${HOME}/.config/kitty-bak" ]; then
|
if [ -d "${HOME}/.config/kitty" ] && [ ! -d "${HOME}/.config/kitty-bak" ]; then
|
||||||
cp -r "${HOME}/.config/kitty" "${HOME}/.config/kitty-bak"
|
cp -r "${HOME}/.config/kitty" "${HOME}/.config/kitty-bak"
|
||||||
|
@ -23,8 +26,10 @@ setupKitty() {
|
||||||
mkdir -p "${HOME}/.config/kitty/"
|
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/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
|
curl -sSLo "${HOME}/.config/kitty/nord.conf" https://github.com/ChrisTitusTech/dwm-titus/raw/main/config/kitty/nord.conf
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
checkEnv
|
checkEnv
|
||||||
checkEscalationTool
|
checkEscalationTool
|
||||||
setupKitty
|
setupKitty
|
||||||
|
setupKittyConfig
|
|
@ -16,6 +16,9 @@ setupRofi() {
|
||||||
else
|
else
|
||||||
echo "Rofi is already installed."
|
echo "Rofi is already installed."
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
setupRofiConfig() {
|
||||||
echo "Copy Rofi config files"
|
echo "Copy Rofi config files"
|
||||||
if [ -d "$HOME/.config/rofi" ] && [ ! -d "$HOME/.config/rofi-bak" ]; then
|
if [ -d "$HOME/.config/rofi" ] && [ ! -d "$HOME/.config/rofi-bak" ]; then
|
||||||
cp -r "$HOME/.config/rofi" "$HOME/.config/rofi-bak"
|
cp -r "$HOME/.config/rofi" "$HOME/.config/rofi-bak"
|
||||||
|
@ -33,3 +36,4 @@ setupRofi() {
|
||||||
checkEnv
|
checkEnv
|
||||||
checkEscalationTool
|
checkEscalationTool
|
||||||
setupRofi
|
setupRofi
|
||||||
|
setupRofiConfig
|
||||||
|
|
Loading…
Reference in New Issue
Block a user