Fix non-interactive run and add additional apt packages

This commit is contained in:
2025-08-29 14:48:15 -07:00
parent c9f242178b
commit a7101ebab8
3 changed files with 16 additions and 12 deletions
+1
View File
@@ -244,3 +244,4 @@ fi
# Created by `pipx` on 2025-06-16 02:20:13
export PATH="$PATH:/home/brad/.local/bin"
export PATH=$PATH:/home/brad/bin
+13 -12
View File
@@ -54,9 +54,9 @@
# TODO: Separate out themes and make gruvbox optional
# TODO: Restart needed
# TODO: Restart needed needs to be implemented
# TODO: non-interactive
# TODO: non-interactive should be used throughout the codebase
# TODO: Support different install types (user, server, hardened, IoT, devbox)
@@ -172,7 +172,8 @@ function link_dotfiles {
# files in the dotfiles directory specified in $files to the homedir
for file in $home_files; do
if [[ -f $file || -d $file ]]; then
if [[ -f ~/.$file || -d ~/.$file ]]; then
# Don't skip if not interactive as initial files often exist that should be replaced
if [[ (-f ~/.$file || -d ~/.$file) && "$interactive" -eq 1 ]]; then
echo "Skipping: $file because ~/.$file already exists"
else
echo "Linking: $file ($config_dir/$file -> ~/.$file)"
@@ -695,40 +696,40 @@ function run_interactively() {
elif [[ $response == "dotfiles" ]]; then
link_dotfiles
echo ""
main
run_interactively
elif [[ $response == "programs" ]]; then
install_programs
install_aur
echo ""
main
run_interactively
elif [[ $response == "programs-official" ]]; then
install_programs
echo ""
main
run_interactively
elif [[ $response == "aur-only" ]]; then
install_aur
echo ""
main
run_interactively
elif [[ $response == "system-configs" ]]; then
setup_system_configs
echo ""
main
run_interactively
elif [[ $response == "desktop-environment" ]]; then
choose_desktop_environment
echo ""
main
run_interactively
elif [[ $response == "samba" ]]; then
setup_samba
echo ""
main
run_interactively
elif [[ $response = "ssh" ]]; then
setup_ssh
echo ""
main
run_interactively
elif [[ $response == "install-local" ]]; then
install_local
echo ""
main
run_interactively
fi
}
+2
View File
@@ -1,5 +1,7 @@
vim
neovim
silversearcher-ag
tree
# Useless stuff
fortune-mod